|
|
OSU Physics Faq's |
| Welcome to the Ohio State Physics Department
(http://www.physics.ohio-state.edu) Faq-O-Matic!
This is an automated FAQ site, established on 30-Aug-2001 (but based on a previous version hosted by Dick Furnstahl). Members of the Physics Department (and friends) are invited to participate in the development and maintenance of these FAQ lists. Contact Dick Furnstahl (furnstahl.1@osu.edu) to propose topics and questions or to volunteer as a topic moderator.
To find a specific topic,
try using the "Search" link at the bottom left of this
(or any) page.
| |
| Major Topics:
General questions:
| |
| [New Answer in "OSU Physics Faq's"] | |
| 2001-Nov-13 4:42pm | |
|
|
Physics Department |
|
Answers about the OSU Physics Department.
| |
| Major Topics:
General Questions: | |
| [New Answer in "Physics Department"] | |
| 2001-Oct-17 8:23pm | |
|
|
Society of Physics Students (SPS) |
|
| |
| Major Topics:
General Questions: | |
| [New Answer in "Society of Physics Students (SPS)"] | |
| 2000-Feb-15 7:42pm | |
|
|
Who the heck are you? |
| Good question! The Society of Physics Students is a national organization through the American Institure of Physics (AIP). Our goal is to promote education and support for physics students. To do this, we have regular (and irregular) meetings with activities such as physics demonstrations, speakers, field trips, and movie nights.
| |
| Major Topics:
General Questions:
| |
| [New Answer in "Who the heck are you?"] | |
| omarshal@mps.ohio-state.edu | |
| 2000-Jan-31 3:50pm | |
|
|
Where can I track you down? |
| Second star to the left and straight on 'til morning! Oh wait, that was somewhere else ... I would suggest coming to Smith Laboratory Room 1011. This is also known as the Physics Undergraduate Lounge. When we do have our meetings, they usually start here. Directions to Smith Labs can be found by going to http://www.physics.ohio-state.edu/maps.html.
Once inside Smith, Room 1011 is on the first floor and it is directly across from the Physics Office. The SPS office is also in this room. The office door shows the names and email addresses of the officers. Any of them would be happy to help you find us!
2000-Feb-10 7:53am omarshal@mps.ohio-state.edu | |
| [Append to This Answer] | |
| 2000-Feb-10 7:53am | |
|
|
When are your meetings? |
| So! We've managed to lure you into our web! We would be glad to have you! Our schedule changes from quarter to quarter thanks to the simple fact that we are a group of college students. Currently, we seem to meet on Wednesdays with a frequency of at least once per month.
2000-Jan-31 4:20pm omarshal@mps.ohio-state.edu | |
| [Append to This Answer] | |
| 2000-Jan-31 4:20pm | |
|
|
How do I join your Majestic Pantheon? |
| Ah! Another convert! Yes, you may be indoctrinated into the mysteries of the SPS. Simply come to one of our meetings.
2000-Jan-31 4:26pm omarshal@mps.ohio-state.edu | |
| Major Topics:
General Questions: | |
| [New Answer in "How do I join your Majestic Pantheon?"] | |
| 2000-Jan-31 4:34pm | |
|
|
Pretty Cool! But isn't there a fee? |
| Membership in the Ohio State University chapter of the SPS is currently free of charge. That's right! For no money down and no downpayment, you too can become one of the elite, the powerful, the beloved and respected few known as the Society of Physics Students! Now the National organization on the other hand ...
2000-Jan-31 4:30pm omarshal@mps.ohio-state.edu | |
| [Append to This Answer] | |
| 2000-Jan-31 4:30pm | |
|
|
I knew it!!! |
| Yes, if you want to join the National organization known as the SPS, you will have to pay an annual fee. Currently the cost is $15. With this membership however, you receive a subscription to Physics Today, access to their job placement program, scholarships and many other opportunities which will make your peers green with envy! Oh wait. That was just gamma radiation. Never mind.
2000-Jan-31 4:33pm omarshal@mps.ohio-state.edu | |
| [Append to This Answer] | |
| 2000-Jan-31 4:33pm | |
|
|
Am I required to join the national organization? |
| In a word, "no". We do highly recommend membership however for the reasons previously outlined under "I knew it!!!".
2000-Jan-31 4:35pm omarshal@mps.ohio-state.edu | |
| [Append to This Answer] | |
| 2000-Jan-31 4:35pm | |
|
|
Why should I join the SPS? |
| You mean beyond the plethora of reasons already delineated in earlier FAQ's? You mean besides the cameraderie, the esteem, the je ne sais quois? You mean besides the opportunity to make liquid nitrogen ice cream, to build can crushers, to show students everywhere the fun that can only be had with Physics? You mean besides the occasional free pizza and movie nights? I'll tell you why. Because you too can learn the answer to the question that has plagued mankind since the dawn of time. "Just how many licks does it take to get to the Tootsie Roll center of a Tootsie Pop?" | |
| Major Topics:
General Questions:
| |
| [New Answer in "Why should I join the SPS?"] | |
| omarshal@mps.ohio-state.edu | |
| 2000-Feb-15 7:39pm | |
|
|
What can you do for me? |
| That's what it all boils down to really. We provide tutoring to both members and non-members. We have social get togethers. We can give advice concerning scheduling your physics classes. Also, various members of our group have expertise in a wide range of areas such as computer programming and graphics, mathematics, chemistry, biology, geology, atmospheric sciences, english composition, electronics and art not to mention individual areas of physics such as optics, astronomy, nuclear physics and condensed matter.
| |
| Major Topics:
General Questions: | |
| [New Answer in "What can you do for me?"] | |
| omarshal@mps.ohio-state.edu | |
| 2000-Feb-15 7:55pm | |
|
|
Where do I go for Math help? |
| Assuming that you have already tried your professor, TA, and/or fellow classmates, the SPS is a logical place to start. As physics majors, we have taken many upper level mathematics courses and many of us pursue second majors or minors in mathematics. Also, a good place to find conceptual help is the site http://mathworld.wolfram.com.
| |
| [Append to This Answer] | |
| omarshal@mps.ohio-state.edu | |
| 2000-Feb-15 7:54pm | |
|
|
What about computing? |
| As physics majors, most businesses and universities will assume that you know your way around a computer. While the department has given us a lovely undergraduate lounge, most of the majors do not use it to its full potential. Here we have the ability to learn to use UNIX, VAX, Macintosh and PC clones to program in C, C++, FORTRAN, Visual BASIC, and JAVA among other languages. Most of the professors and many of the members of SPS have taken time to learn at least one of these things and we are more than happy to pass along the knowledge. If you really want to impress a professor, learn to write your lab reports using LaTex.
| |
| [Append to This Answer] | |
| omarshal@mps.ohio-state.edu | |
| 2000-Feb-15 7:59pm | |
|
|
Travel |
|
| |
| Subcategories:
Answers in this category: | |
| [New Answer in "Travel"] | |
| 2001-Oct-04 7:34am | |
|
|
Where do I find per diem rates for travel? |
| For Federal agency travel (e.g., on an NSF or DOE grant), check out the GSA guidelines at http://www.policyworks.gov/org/main/mt/homepage/mtt/perdiem/travel.shtml, which has links to per diem rates for US and foreign travel. There is also an FAQ at the bottom of the page.
| |
| [Append to This Answer] | |
| 2001-Oct-04 7:38am | |
|
|
How do I get a reimbursement for a seminar visitor? |
| See Betty Wallace. 1999-Dec-22 2:58pm furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 1999-Dec-22 2:58pm | |
|
|
How do I get an announcement placed in the Physics Department newsletter? |
| The weekly Physics Department newsletter is maintained by Susan McGarvey, Smith 4054, 292-3437.
Any information that you would like to include can be sent to Susan via E-mail at mcgarvey@mps.ohio-state.edu. This information should be received no later than 4:30pm Tuesday the week before it is to appear. This schedule allows the newsletter to be in the mail by the close of business Wednesday.
For the most up-to-date schedule, check the Physics Department homepage http://www.physics.ohio-state.edu/ for the upcoming week's events and also the Monthly Calendar of Events page http://www.physics.ohio-state.edu/calendar/. | |
| [Append to This Answer] | |
| 2001-Oct-12 2:06pm | |
|
|
Graduate Schools and Graduate Students |
|
| |
| Subcategories:
Answers in this category: | |
| [New Answer in "Graduate Schools and Graduate Students"] | |
| 2001-Oct-17 8:24pm | |
|
|
Where can I find the best graduate schools in a particular field? |
| Check out the customized graduate school rankings at http://www.phds.org/ratings/, which are based on the NRC rankings. | |
| [Append to This Answer] | |
| 2001-Oct-17 8:26pm | |
|
|
Computing (general) |
| This section addresses questions on computing
on the OSU campus and in the Physics Department.
Check out the | |
| Major Topics:
General Questions:
| |
| [New Answer in "Computing (general)"] | |
| 2005-Sep-07 1:03pm | |
|
|
|
| Using email at OSU and in the Physics Department.
| |
| Major Topics:
General Questions:
| |
| [New Answer in "Email"] | |
| 2007-Apr-09 12:47pm | |
|
|
Pine mail program |
| Pine is a good choice for a non-gui mail program (as opposed to using the mail capabilities of a web browser or some other graphical interface). It is the default mail program for most unix systems these days (which for OSU Physics means campbell and the other alphas as well as any linux boxes). 2001-Dec-14 10:02am furnstahl.1@osu.edu | |
| Subcategories:
Answers in this category: | |
| [New Answer in "Pine mail program"] | |
| 2001-Dec-14 1:32pm | |
|
|
How do I get help on the Pine mail program? |
| If you wish to get more in-depth information regarding PINE, you can check out the PINE information center at: The University of Washington (http://www.washington.edu/pine). 2001-Sep-08 8:50am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2001-Dec-14 10:05am | |
|
|
How can I change my Elm folders to folders in Pine? |
| ELM stores mail folders in a directory called 'Mail' in your account.
However, PINE uses a directory called 'mail' to store it's mail
folders.
One option you can choose is to move all of your folders that are in your 'Mail' directory into your 'mail' directory. You can do this by typing in this command at your mail prompt: mv ~/Mail/* ~/mail/*This will move all of the mail folders from your 'Mail' directory in your account to a directory called 'mail'. Then, when you go into PINE, and list your folders, you should see all of your folders listed on the screen. The other option you can choose is to change Pine's setup using these directions: Go into Pine
Hit 's' for setup
Hit 'c' for configuration
Go down to the option for 'folder-collections'
and highlight that row.
Hit 'c' for change value.
Put in the following:
Mail/[]
and hit RETURN.
Hit 'e' to exit and then hit 'y' to save your changes.
Then, exit out of pine, and re-enter pine. You should
see your mail folders appear in your folder list.
If you wish to get more in-depth information regarding PINE, you can
check out the PINE information center at:
The University of Washington (http://www.washington.edu/pine). | |
| [Append to This Answer] | |
| 2001-Dec-14 10:05am | |
|
|
How do I convert my old Elm alias list to a Pine address book? |
You can convert an elm aliases file to a pine address book using the Perl script elm-to-pine. Your elm aliases file will typically be found in your .elm directory and will be called aliases.text. To make the conversion:
elm-to-pine ~/.elm/aliases.text > ~/.addressbookwhich will leave you with a file called .addressbook in your top directory (which is where Pine looks for it by default.
The script is available from </~ntg/scripts/elm-to-pine> (just save this file with the name elm-to-pine in a convenient directory). | |
| [Append to This Answer] | |
| 2001-Dec-14 10:14am | |
|
|
How do I read my Unix email when running Pine on another computer? |
| Note that you could always ssh to fox and then run pine directly on fox. This has the advantage of making all the mail operations fast but doesn't work so well in handling attachments (e.g., MS Word documents). Also, if you have a slow connection (e.g., modem), you wouldn't want to use the viewers (e.g., gv or xv) on fox but instead use local viewers (it still will be slow if the attachment is large!).
To have Pine access your mail on Unix we'll use imap. You don't need to know what it is doing, you just need to change a few lines in your .pinerc file. (You can also do this within mail using the Setup facility, but I find it easier just to explain how to edit .pinerc). You will find .pinerc in your home directory. Bring it up in an editor. There will be lines starting with #, which are comments, and other lines that specify options. The option lines start in the first column unless it is a continuation line, in which case the second, thrid, etc. lines are indented at least with one space. This is explained in comments at the top of the file.
Let us suppose that your name is John Doe and your username on your own computer is john while your username on Unix is jdoe. Find the following items in .pinerc and change them analogously: personal-name=John Doe 2004-Aug-19 9:47am furnstahl.1@osu.edu, bcd@pacific.mps.ohio-state.edu | |
| [Append to This Answer] | |
| 2004-Aug-19 9:47am | |
|
|
What are some useful Pine options to set? |
| For the latest and greatest options in gory detail, check out the official Pine configuration notes at http://www.washington.edu/pine/tech-notes/config.html (but be careful whether the version you are using is up-to-date).
A sample .pinerc (mine), which is used to access Pine on Campbell from remote machines via imap and ssh, is available here: </~ntg/scripts/.pinerc>
| |
| [Append to This Answer] | |
| 2001-Dec-14 2:40pm | |
|
|
How can I read my Unix (fox) or VMS (mps) mail from a web browser? |
| You can use twig to access VMS mail (ohstpy.mps.ohio-state.edu) or fox/pacific unix mail.
Here are the facts: * You need to use an ssl-enabled web browser, which is one that can interact
with "https" (as opposed to the usual "http") pages. If you are using a
recent version of Internet Explorer or Netscape, you should be fine.
If you are using Mozilla, make sure that mozilla-psm is installed.
* Go to https://twig.physics.ohio-state.edu/twig/ to get started.
Select the Server from the pulldown menu (VMS or unix), then enter
your username and password. Click on "Log in".
* If you login successfully, you should reach a screen with options.
that include "Mail". Click on the link to Mail.
* On the unix side, this should display your INBOX. You can use the Prefs
link to change how the list is sorted (oldest first or last).
* Use the Help link to learn more!
Things to remember: * Always go through the login screen at
https://twig.physics.ohio-state.edu/twig/
instead of bookmarking a page further on.
* Always "Logout" at the end of the session to clear the cache.
* Always "Logout" before leaving twig for a different website in the same
browser window. If you go to another website and then come back to twig,
without logging out, new mail you send will probably fail to be sent.
2004-Aug-19 9:39am furnstahl.1@osu.edu, bcd@pacific.mps.ohio-state.edu | |
| [Append to This Answer] | |
| 2004-Aug-19 9:40am | |
|
|
How can I send a fax by email? |
| The OIT Help Desk page
(http://www.oit.ohio-state.edu/tsc/33084.html)
tells how to do it.
The basic idea is that your fax message is composed as an email message and you send it to a special address that includes the phone number to which you are faxing. The form of the address is: First_Last%phone@faxgate.acs.ohio-state.eduwhere First_Last is made from the first and last names of the recipients (or any other identifier). E.g., John Doe becomes John_Doe. Examples of phone numbers: Long Distance Toll-free
1UUUUUUAAAPPPPPPP 91800PPPPPPP
where U is your UNITS Plus code (it will be blanked out in the message),
A is the area code, P is the phone number.
For example, to send a campus fax to OSURF purchasing at x2-6870, use the address: OSURF_purchasing%26870@faxgate.acs.ohio-state.eduand to send a fax to Jane Doe at (916)743-6322 using Plus number 12345, use the address: Jane_Doe%1123459167436322@faxgate.acs.ohio-state.edu(don't forget the 1 at the beginning!). 2001-Sep-08 8:45am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2001-Sep-08 8:45am | |
|
|
How do I uuencode a file? |
| Uuencode [uudecode] is a utility for encoding [decoding] files
exchanged on a network, particularly by email.
Suppose we have the file test.doc that we want to encode as test.doc.uu (it is standard practice to append .uu to the name of the file) so that it has the filename newtest.doc when uudecoded. On a unix system: uuencode test.doc newtest.doc > test.doc.uuOn VMS: UUENCODE TEST.DOC/OUT=TEST.DOC.UU/NAME=NEWTEST.DOC 2001-Aug-30 4:50pm furnstahl.1@osu.edu, webmaster@www.physics.ohio-state.edu | |
| If you have a group of files to uuencode, first combine them
into some sort of archive before invoking uuencode.
The utility script uufiles (available on Campbell) will tar, gzip, and uuencode a group of files. The command: uufiles -gzwill start things rolling. Just answer the questions!
An extensive discussion of uufiles and sources for all platforms
(unix, vms, dos/windows, MacOS) can be found at
(http://xxx.lanl.gov/help/uufiles). This includes a detailed
example (http://xxx.lanl.gov/help/uuexample.html). | |
| [Append to This Answer] | |
| 2001-Aug-30 4:50pm | |
|
|
How do I deal with spam and viruses? |
We don't have an effective way to *stop* it. We do have some ways to help manage it. Brian Keller points out that you can get yourself removed temporarily from some of the spam lists by actually following their unsubscribe instructions. I find this risky - some of them use that as confirmation of a real address and send more, and a couple times we've seen retaliation in the form of viruses sent in response to an unsubscribe attempt. However, this is the strategy Brian uses. On Unix, we have a utility called SpamAssassin, which is run via procmail. This tool is unavailable on VMS (the VMS server quarantines spam and viruses using a system called Precisemail). To use SpamAssassin, follow these instructions on Unix: Create a file named ~/.procmailrc containing the following (what is in between the "cut here" lines, not including them): --cut here-- PATH=/bin:/usr/bin:/usr/local/bin MAILDIR=$HOME/mail LOGFILE=$MAILDIR/.from INCLUDERC=/usr/local/share/procmail-include --cut here-- Now, email will come in, and procmail will run on it. Procmail will use SpamAssassin to filter mail into 3 files: ~/mail/spam: This is where the messages that spamassassin identifies as spam will go. Sometimes legitimate email that happens to contain "spammy" words or maybe HTML tags will end up here, so you want to check this file to make sure you don't lose something you care about. ~/mail/virus: Now that we are filtering viruses at the server with Clam Anti-Virus, this mailbox receives the notifications from ClamAV, which tell you which virus was detected and who the purported sender was. Note well that the viruses fake the sender, so that part is usually a lie. Your regular inbox: Very little spam should make it through to this one. Since these files are in ~/mail, pine will see them in the folder list. If you use a different mail program or a different subdirectory to store email messages, you can change the setting for this directory in your .procmailrc. It's important to check these mailboxes in case of false positives. It is also very important to clean out these files periodically so that they do not grow to an unmanageable size or fill up your disk quota. However, I find that categorizing the email lets me optimize my time a bit. CUSTOMIZATION: SpamAssassin reads a file named ~/.spamassassin/user_prefs. You can edit this file to tailor spamassassin's behavior. Three very useful directives you can put in this file are required_score 3.00 whitelist_from user@address.com blacklist_from spammer@badneighbor.org "required_score" defines the numeric score at which a message is identified as spam. The default is 5.00. A higher required_score means more spam will reach your regular mailbox; a lower required_score may mean that more legitimate mail is placed in the spam box. "whitelist_from" defines an address from which email will always be tagged as non-spam. "blacklist_from" defines an address whose email will always be tagged as spam. This is useful in cases that you find are frequently mis-identified. Each of them takes one argument, but can be repeated: whitelist_from dad@home.org whitelist_from mom@home.org There are lots more things you can do in the user_prefs file; for more information see `man Mail::SpamAssassin::Conf' on fox but beware: you can easily configure it into not working right at all, so use caution.2008-Jan-24 9:11am bcd@pacific.mps.ohio-state.edu | |
| [Append to This Answer] | |
| 2008-Jan-24 9:11am | |
|
|
How do I send vacation email notifications automatically while I'm away? |
On Unix:
1) create a file named ~/.vacation.msg, containing exactly the text you
want in your outgoing message. For example, the file might contain
the following:
From: YOURUSERNAMEHERE@pacific.mps.ohio-state.edu (via the vacation program)
Subject: away from my mail
I am away from the office until next Thursday. Your mail will be
read when I return. If you have an emergency, call my personal assistant
at 555-1212.
2) create a file named ~/.forward, containing the line
\YOURUSERNAMEHERE,"|/usr/local/bin/vacation YOURUSERNAMEHERE"
NOTE WELL that it is important to include the backslash and double
quotes exactly as shown.
2a) if you already have a .forward, and it looks something like this
"| /usr/local/bin/procmail #YOURUSERNAMEHERE"
then instead of the first example, yours should combine them thus:
"| /usr/local/bin/procmail #YOURUSERNAMEHERE", "| /usr/local/bin/vacation YOURUSERNAMEHERE"
Note well the exact quotes and the comma.
3) Change the string YOURUSERNAMEHERE to your username (in lowercase).
4) Run the command
chmod 644 ~/.forward
5) Run the command
/usr/local/bin/vacation -I
to initialize the vacation database (so it knows to whom it has already
replied). This works best if done on fox.
6) Remember to remove or rename the .forward file when you return!2006-Jul-27 1:48pm bcd@pacific.mps.ohio-state.edu | |
| [Append to This Answer] | |
| 2006-Jul-27 1:48pm | |
|
|
Processing many messages in pine |
| Start pine. Type S for Setup Type C for Config Type W for Whereis Type the string "aggregate". This will take you to "Enable-aggregate-command-set". Type X to turn this option on Type E to Exit Setup Type Y to save changes Navigate to the mail folder you want, e.g. spam Type a semicolon (;) to start the selection process Use the appropriate selection criterion from the menu (e.g., A for All) Type A for Apply Type the letter for the appropriate action from the menu (e.g., D for Delete) 2007-Apr-09 12:58pm bcd@pacific.mps.ohio-state.edu | |
| [Append to This Answer] | |
| 2007-Apr-09 12:58pm | |
|
|
Graphics |
| Questions about plotting and other graphics programs available in the
Physics Department.
| |
| Major Topics:
General Questions:
| |
| [New Answer in "Graphics"] | |
| 2003-Nov-14 4:34pm | |
|
|
Grace (or xmgrace) |
| Grace and its X-windows incarnation xmgrace are the latest evolution of
the program xmgr for two-dimensional plotting.
| |
| Major Topics:
General Questions: | |
| [New Answer in "Grace (or xmgrace)"] | |
| 2003-Feb-18 6:39pm | |
|
|
Is there an FAQ for Grace or xmgrace? |
| Yes! It is http://plasma-gate.weizmann.ac.il/Grace/doc/FAQ.html. 2001-Sep-08 8:52am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2001-Sep-08 8:52am | |
|
|
When I include an EPS file generated by Grace into my (La)TeX document, the graphic hides some of the surrounding text. |
| This answer is from the Grace FAQ at http://plasma-gate.weizmann.ac.il/Grace/doc/FAQ.html.
LaTeX does not do hard clipping of EPS files unless instructed to do so. Use \includegraphics*{} and NOT \includegraphics{}. If using the epsf package, remember to include the \epsfclipon flag.
The erasing comes about because Grace fills the background with the page size and not the bbox size. The
background filling can be disabled from the "Plot/Plot appearance" popup. | |
| [Append to This Answer] | |
| 2000-Jan-24 7:51am | |
|
|
Printing to my old PostScript printer produces an error. |
| This answer is from the Grace FAQ at
http://plasma-gate.weizmann.ac.il/Grace/doc/FAQ.html.
By default, the PS driver uses Level 2 features, while your printer may not be PostScript Level 2 compliant. You
can force the use of PS Level 1 only features in the PostScript device setup, though output may be not exactly
as expected (there will be no pattern fills, for example). | |
| [Append to This Answer] | |
| 2000-Jan-24 7:52am | |
|
|
The GIMP |
| From (http://www.gimp.org/the_gimp.html): "The GIMP is the GNU Image Manipulation Program. It is a freely distributed piece of software suitable for such tasks as photo retouching, image composition and image authoring." In short, The Gimp is a program like Adobe Photoshop, only open source (which means, in this case, it is free and you can extend/hack it). It is distributed with all major Linux distributions, but there are also versions available for other unixes, for Windows [(http://www.gimp.org/~tml/gimp/win32/)], and for Mac OS X [(http://www.macgimp.com/) but not free]. See (http://www.rru.com/~meo/gimp/faq-user.html) for the GIMP User FAQ and (http://www.gimp.org/tutorials.html) for Gimp tutorials (and pointers to others). 2001-Sep-09 4:01pm furnstahl.1@osu.edu | |
| Subcategories:
Answers in this category:
| |
| [New Answer in "The GIMP"] | |
| 2001-Sep-09 4:01pm | |
|
|
Drawing Feynman Diagrams |
| Here we consider various options for producing Feynman diagrams for talks or for inclusion in journal articles.
If you have alternative approaches, please contact Dick Furnstahl at furnstahl.1@osu.edu. | |
| Subcategories:
Answers in this category:
| |
| [New Answer in "Drawing Feynman Diagrams"] | |
| 2001-Sep-11 7:44am | |
|
|
Feynmf |
| One of the best options for Feynman diagrams if you're using TeX or LaTeX is Feynmf, which was written by Thorsten Ohl. Check out the examples! 2001-Sep-11 4:59pm furnstahl.1@osu.edu | |
| Subcategories:
Answers in this category: | |
| [New Answer in "Feynmf"] | |
| 2001-Sep-11 5:00pm | |
|
|
What do I need to run Feynmf? |
| A "tarball" of the package is available locally as
</~furnstah/temp/feynmf/feynmf.tar.gz> but you might want to do a Google.com search to check for an updated version.
You also might want to use (or adapt) this simple csh script
</~furnstah/temp/feynmf/fmf_make> for processing diagrams and popping up xdvi with the revised version. (It kills old intermediate files, to avoid confusing xdvi and dvips.) This other script
</~furnstah/temp/feynmf/fmf_make2> uses Metapost instead of Metafont. You'll want to use it to make Feynman diagrams with colors. | |
| [Append to This Answer] | |
| 2001-Sep-11 5:00pm | |
|
|
Is there documentation for Feynmf? |
There is a manual: </~furnstah/temp/feynmf/fmfman.ps.gz> and a three part tutorial. All of the links are to gzipped postscript files.
Part 1: </~furnstah/temp/feynmf/textproc1.ps.gz> Part 2: </~furnstah/temp/feynmf/textproc2.ps.gz> Part 3: </~furnstah/temp/feynmf/textproc3.ps.gz>
The manual and tutorials have many examples. | |
| [Append to This Answer] | |
| 2001-Sep-11 7:56am | |
|
|
Can you show me some examples of Feynmf? |
|
* A simple QED vertex correction </~furnstah/temp/feynmf/qedtest.ps> and the
LaTeX file that generated it </~furnstah/temp/feynmf/qedtest.tex>
* Hugenholtz diagrams </~furnstah/temp/feynmf/fig_hugenholtz.ps> and the
LaTeX source </~furnstah/temp/feynmf/fig_hugenholtz.tex> (you'll also
need hugenholtz.tex </~furnstah/temp/feynmf/hugenholtz.tex>)
2001-Sep-11 8:01am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2001-Sep-11 8:01am | |
|
|
How do I make Feynman diagrams using Feynmf with colors? |
| You'll need to run Metapost instead of Metafont to get the colors (this means
that you'll need the "feynmp" rather than "feynmf" input files. Also,
any colors that are not part of the figures (e.g., from external labels)
won't show up until you create a postscript file (see the example).
Here's an example postscript file </~furnstah/temp/feynmf/fig_rmf.ps>
and the LaTeX source code </~furnstah/temp/feynmf/fig_rmf.tex>.
The instructions are given in the comments of the examples' source code: * to typeset XXX.tex with Feynmp: [e.g., fig_rmf.tex]
$ latex XXX [latex fig_rmf]
$ mpost fmfXXX [mpost fmffig_rmf]
$ latex XXX [latex fig_rmf]
* to generate a postscript file:
$ dvips -o XXX.ps XXX.dvi [dvips -o fig_rmf.ps fig_rmf.dvi]
* you may need to delete the fmfXXX??? files to make sure the fonts
are updated
2001-Sep-14 1:19pm furnstahl.1@osu.edu | |
Here are some examples:Description postscript / source
various chiral eft </~furnstah/temp/feynmf/fig_chiral1.ps>
diagrams </~furnstah/temp/feynmf/fig_chiral1.tex>
</~furnstah/temp/feynmf/fig_chiral2.ps>
</~furnstah/temp/feynmf/fig_chiral2.tex>
</~furnstah/temp/feynmf/fig_chiral3.ps>
</~furnstah/temp/feynmf/fig_chiral3.tex>
</~furnstah/temp/feynmf/fig_chiral4.ps>
</~furnstah/temp/feynmf/fig_chiral4.tex>
</~furnstah/temp/feynmf/fig_chiral5.ps>
</~furnstah/temp/feynmf/fig_chiral5.tex>
</~furnstah/temp/feynmf/fig_chiral6.ps>
</~furnstah/temp/feynmf/fig_chiral6.tex>
</~furnstah/temp/feynmf/fig_chiral7.ps>
</~furnstah/temp/feynmf/fig_chiral7.tex>
| |
| [Append to This Answer] | |
| 2001-Sep-14 1:32pm | |
|
|
How do I rotate a postscript document or figure by 90 or 180 degrees? |
| If the document or figure is a single postscript page without any embedded postscript files (such as an embedded figure) . . .
To rotate by 180 degrees, add the postscript command: 180 rotate -612 -792 translateafter the start of the page in your document (so on the line after the %%Page: 1 or %%Page: 1 1 line) and adjust the bounding box by %%BoundingBox: Lx Ly Ux Uy --> %%BoundingBox: 612-Ux 792-Uy 612-Lx 792-Ly(the bounding box specification should be near the start of the file). To rotate by 90 degrees, add the postscript command: 90 rotate 0 -612 translateafter the start of the page in your document (so on the line after the %%Page: 1 or %%Page: 1 1 line) and adjust the bounding box by %%BoundingBox: Lx Ly Ux Uy --> %%BoundingBox: 612-Uy Lx 612-Ly Ux(the bounding box specification should be near the start of the file).
* If you put the command earlier, e.g. immediately after %%EndComments, then the page will be rotated when initially viewed by a postscript viewer (such as gv), but will revert to the original form when you "reopen" or "redisplay" the file. * If your page or figure fills a full letter-sized page, then the bounding-box mapping for a 180 degree rotation takes %%BoundingBox: 0 0 612 792 --> %%BoundingBox: 0 0 612 792(so it is not necessary!). * If your document has more than one page, then you have to add 180 rotate -612 -792 translateafter each %%Page: command in the file (there should be one for each page!). DO NOT add this line after the %%Page: commands that are part of any embedded postscript files. (You can identify the latter because they start with %%BeginDocument and end with %%EndDocument.) 2001-Sep-07 2:18pm furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2001-Sep-07 2:18pm | |
|
|
Is there a way to convert a postscript (eps) file into a pdf clipped at the bounding box? |
| Yes, use the epstopdf script.
If you put a << /PageSize [ xsize ysize ] >> setpagedeviceline at the beginning of your postscript file, epstopdf will invoke ghostscript so that it clips at a bounding box equal to 0 0 xsize ysize. (You may need to translate as well.) From an answer found by a google search: Add some code to resize the page. If the bounding box
is 50 50 450 450
gs -c "<< /PageSize [400 400] >> setpagedevice 50 neg 50 neg translate>> -f yourfile.ps
2003-Nov-14 4:39pm furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2003-Nov-14 4:39pm | |
|
|
Macintosh |
| Hints and pointers for mac stuff at OSU.
| |
| Major Topics:
General Questions: | |
| [New Answer in "Macintosh "] | |
| 1999-Dec-27 9:34am | |
|
|
New Item |
| [Append to This Answer] | |
| 1999-Dec-27 9:25am | |
|
|
Where are public Macintosh's in Smith Lab? |
| Room 4035: One G3/300 and one PowerMac
Physics Students: | |
| [Append to This Answer] | |
| 1999-Dec-27 9:43am | |
|
|
Numerical Analysis |
| "Numerical Recipes" by Press et al. is a standard source of information on numerical analysis. The homepage for NR products is http://www.nr.com/. The book is available on line at http://lib-www.lanl.gov/numerical/index.html in postscript or PDF. Note that the Numerical Recipes routines at seldom as robust as those available from sources such as CERNLIB or Netlib.
A general guide to routines is GAMS ("Guide to Available Mathematical Software") maintained by NIST at http://gams.nist.gov/. Particularly useful is the Problem Decision Tree http://gams.nist.gov/serve.cgi. Also off the GAMS page is a good list of links to other sources of math software http://gams.nist.gov/OtherSources.html.
| |
| Major Topics:
General Questions: | |
| [New Answer in "Numerical Analysis"] | |
| 2001-Oct-17 7:44pm | |
|
|
Where can I find out about Monte Carlo methods? |
| A list of Monte Carlo Tutorials is at http://www.cooper.edu/engineering/chemechem/MMC/tutor.html. The lectures by D.M. Cepperley http://archive.ncsa.uiuc.edu/Apps/CMP/method.html are particularly good. 2001-Oct-17 7:29pm furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2001-Oct-17 7:29pm | |
|
|
Printing |
| How do I find available printers? What commands and options are available?
2001-Sep-26 1:37pm bcd@pacific.mps.ohio-state.edu | |
| Subcategories:
Answers in this category: | |
| [New Answer in "Printing"] | |
| 2003-Jan-28 1:26pm | |
|
|
What printers are available? |
For a complete list of printers, typelpstat -pPrinters are named by the room where they reside. Printers with a `c' on the end of the name are color printers (e.g., smith4035c, smith2097c). Public printers are the ones in 1011s (undergraduate use only) 1021 (graduate use only), 1021k (graduate use only), 2097, 4035 and 4144. All other printers are in private offices and labs, and if you don't have access to that room, you are only wasting paper. 2001-Sep-26 1:41pm bcd@pacific.mps.ohio-state.edu | |
| [Append to This Answer] | |
| 2001-Sep-26 1:41pm | |
|
|
How do I print double-sided? |
The simplest way is to use the /duplex instance of the printer for the name. For examplelpr -Psmith2097/duplex abstract.pswill print the file `abstract.ps' in duplex (double-sided) mode on the smith2097 printer.
Not all printers support duplex printing. If you believe a printer is capable of duplexing, but there is no /duplex instance for it in the list produced by the command lpstat -pthen please send email to action@mps.ohio-state.edu reporting this, and we will look into it.
The /duplex instance used above is really just a shorthand for a command like: lpr -Psmith2097 -o sides=two-sided-long-edge abstract.psIt is also possible to rotate around the short edge of the page (Tumble printing) with the option `-o sides=two-sided-short-edge'.
See http://localhost:631/documentation.html for complete documentation (CUPS Software Users Manual).
| |
| [Append to This Answer] | |
| 2001-Sep-26 1:48pm | |
|
|
How do I set up printing on my Linux machine in the Physics Dept.? |
| See http://www.physics.ohio-state.edu/cgi-bin/fom?auth=ck4c904ddf40d1&editCmds=show&file=171
2001-Sep-26 1:50pm bcd@pacific.mps.ohio-state.edu | |
| [Append to This Answer] | |
| 2001-Sep-26 1:50pm | |
|
|
Where is the documentation on printing commands and options? |
| See http://lpd.physics.ohio-state.edu:631/documentation.html The most common questions are answered in the CUPS Software User Manual. 2003-Jan-28 1:29pm bcd@pacific.mps.ohio-state.edu | |
| [Append to This Answer] | |
| 2003-Jan-28 1:29pm | |
|
|
Scanning |
| An excellent source of information about scanning
and image size optimization is a page by Wayne
Fulton (http://www.scantips.com/). 2001-Sep-08 9:05am furnstahl.1@osu.edu | |
| Major Topics:
General Questions: | |
| [New Answer in "Scanning"] | |
| 2003-Jan-14 9:32am | |
|
|
How do I scan a drawing or figure for a document to be printed out (Windows)? |
| The following procedure is based specifically on the HP DeskScan II software,
but can be adapted to any other scanning software. The basic idea is to scan
the drawing or figure at a larger scaled size and then reduce it when you
convert to postscript later.
1. Select "Sharp Black and White Drawing" (or equivalent) as the scan type. You may need to re-select this as you iterate the scan, because the software will sometimes change it to another selection. 2. Select a (relatively) high resolution, such as LaserWriter or PhotoShop or 300dpi printer. There's probably no point choosing 600dpi, but it won't kill you (just makes your file larger than it needs to be). 3. Use the "Preview" and "Zoom" functions to isolate the drawing or figure that you want to scan. 4. Choose the "Scaling" to be greater than 100%. Make it large enough to still fit on letter-size paper, but as large as possible. 5. Choose "Final" and select something like tiff as the format. Complete the scan. 6. Now you need to convert the tiff file to a postscript file. There are many utility programs to do this. I recommend xv, which is available on the alpha unix, linux, and vms systems. On a mac, GraphicConverter is a good choice.
Using xv, load the tiff file and choose save. Select postscript as the type
of file and adjust the size so that the dpi (which will initially be 72dpi)
is something around 150dpi. You can choose "center" to keep the drawing
centered on the page. When you're ready, choose "ok" and you're done. | |
| [Append to This Answer] | |
| 2003-Jan-14 9:31am | |
|
|
How do I avoid huge scanned files? |
| Scanners these days tend to come with PhD-style interfaces ("Push here, Dummy!"), which means that most of the default settings are made behind your back. In my experience (e.g., with HP PrecisionScan software), the default is to use all the colors and resolution available. Naturally enough, this generates the largest files. This is fine if you are printing a scanned image directly or you want to save all of the details, but not if you want to put an image directly on the web or convert a scanned image to pdf for posting on the web.
The solution, then, is to change the defaults! Examples: * For scanned notes, a resolution of 150 dpi (dots per inch) is fine. | |
| [Append to This Answer] | |
| 2002-Apr-02 9:03am | |
|
|
How do I scan notes or text on linux? |
| This summary is based on experience with the HP Scanjet 6300c scanner attached via a USB connector to a pentium PC running RedHat 7.3. The scanning program is xsane 0.84 (there are newer versions available; check <www.xsane.org> for the latest version). Your mileage may vary . . .
The assumption is that you have handwritten notes or printed text (we'll assume you are covered under copyright fair use!) that you want to combine into a single PDF file. Aside: PDF is the best choice at present for distributing via the web, since the viewers are free (Acrobat Reader or Ghostview) and available on all platforms (Windows, Mac, Linux, Unix) and ghostscript can convert postscript to pdf. 1. Prepare your notes by xeroxing them (at least if they are written in pencil). Xerox fairly dark; they may look gray and ugly, but they'll be fine after scanning (which will turn the gray to white and keep the black). I usually reduce notes a bit (95-98%) to make sure that writing in the margins and close to the bottom is captured. 2. Go to the directory where you want to save the files (I create a new directory for each new batch). Start xsane in the background (that's what the "&" is for): xsane &It should pop up a small box that says it is "scanning for devices" and then a small control panel and a large Preview screen. (If xsane doesn't find an appropriate device, like a scanner, it will exit.) The first time you run the program there may be more than one control panel. To turn off the extra ones (and turn on good features): * under the View menu (in the main control panel), turn off "Show histogram",
"Show standard options", and "Show advanced options"
* under View, turn on "Show tooltips" and "Show preview"
* under Preferences, turn on "Show resolutions list"
These preferences will be saved when you exit the program.
3. Place the first page of the document to be scanned in the upper right corner of the scanner. On the Preview screen, choose the paper type (pull down menu); usually "letter port." (letter-size portrait) is what you want. 4. On the control panel, select "Viewer", "Line art", "Normal", and either 160 or 320 dpi. I find 160 is fine for notes and 320 is excellent for printed text. The file sizes are roughly (note that the postscript is just an intermediate step, so it's ok to be large unless disk space is really tight): material dpi pdf postscript handwritten notes 160 25-40KB/page ~500K/page text 2up 320 60-90KB/page ~2200K/page 5. Click on "Acquire Preview" at the bottom of the Preview screen to make the first scan. You will only do this for the first page. Adjust the dashed box with your mouse to select the area to be scanned. Remember that this will be the same for all pages (unless you want to adjust it, which would really slow you down!). The "Autoselect scanarea" and "Select visible area" buttons at the top of the Preview panel may be useful in positioning the dashed box. The "Zoom into selected area" button (magnifying glass with +) will show just the content of the area to be scanned. 6. On the Control panel, select Xsane mode->"Save", "Line art", "Normal" enter a filename: notes1.ps, "step +1", "by ext", "320" or "160". Here's what these mean: * "Save" means you're scanning to a file;
* "Line art" means black and white only (handwritten or printed text, or
figures);
* "Normal" means normal (I need to look up this option!)
* The filename specifies the name of the first file. You don't need to call
it "notes1.ps" of course, but include a "1" in the name and end it with
".ps" (for postscript). The first file will actually be saved as
notes0001.ps.
* "Step +1" means that the filename will automatically
increment with each scan. So the second scanned page will be
notes0002.ps and so on, without your having to enter anything else.
This is very convenient and efficient!
* "by ext" means to select the file type by the extension of the filename.
Here ".ps" means to save it as postscript. (Pull down this menu
for other file formats such as png and tiff.)
* "320" or "160" is the resolution in dots per inch.
7. Press "start" on the Control panel to start the scan. A green bar will grow on "Receiving gray data" and then another one on "Converting image". When these are complete, the scan is finished and you can put the next sheet of paper in the scanner. The scan head will still be lit up and slowly moving back to its initial postion, but that's ok. 8. Repeat step 7. until all pages are scanned. If you need to do a page over, just change the filename back by hand (and click on "ok" to overwrite the file). 9. Run the pdfmerge script to combine the postscript files into a single pdf file. This is a Perl script to run gs with the appropriate options. It is available at http://www.physics.ohio-state.edu/~ntg/scripts/pdfmerge.pl (link pdfmerge.pl to pdfmerge and make it executable [chmod +x pdfmerge.pl] for the following to work). If your files are notes0001.ps, notes0002.ps, up to notes0024.ps, then type: pdfmerge notes*.psand the script will ask for an output file name. For example, notes1.pdf. It will merge the 24 (or whatever) pages into the single PDF file notes1.pdf. 10. Transfer the PDF file to the desired computer and location using scp: scp notes1.pdf ntg4004:public_html/880/notesis an example.
11. Use File->quit to exit xsane. There is nothing to turn off on the scanner (the light stays on). | |
| [Append to This Answer] | |
| 2003-Mar-27 7:30am | |
|
|
TeX and LaTeX |
| A list of "TeX Resources on the Web" is at http://www.tug.org/interest.html.
This includes a searchable TeX faq list (http://www.tex.ac.uk/cgi-bin/texfaq2html). 2000-Mar-28 2:50pm furnstahl.1@osu.edu | |
| Major Topics:
General Questions: | |
| [New Answer in "TeX and LaTeX"] | |
| 2003-Mar-27 9:41am | |
|
|
Powerpoint-Style Presentations using LaTeX |
| Presentations using Microsoft Powerpoint (shown using a video projector) are rapidly becoming the norm for physics talks in many subfields. However, many of us want to generate platform-independent presentations with all of the good features of Powerpoint while maintaining all of the advantages of creating a talk using LaTeX.
The best solution at present is to take advantage of Adobe's Acroread PDF viewer, which is available at no charge for all of the major platforms (although not all platforms have the most up-to-date version available). The basic idea is to convert your LaTeX presentation to a PDF file and then to display it using Acroread. The features are: * full-screen mode (so all you see is your talk projected on the screen)
* transition effects including
* bullet items revealed one-by-one
* figures revealed step-by-step
* fancy page (or partial page) transitions, such as left-to-right wipes
* hyperlinks in your document so you can click them to go to other parts of
your talk or to external web pages
To create a basic talk that just projects your transparencies (no special transition effects), you just need to generate a pdf (rather than a postscript) file. Then just start up Acroread (it is called acroread on the Linux systems) on the pdf file and switch to full-screen mode (under the View menu or with a shortcut that is usually ctrl-L).
To incorporate transition effects, there are at least three choices at present: the TeXPower bundle by Stephan Lemke, the PPower4 postprocessor, and the Prosper package. Descriptions and links are given in the resource pages listed below.
PDF Classroom Demonstrations: http://www.math.uakron.edu/~dpstory/pdf_present.html Screen presentations: http://www.miwie.org/presentations/ (This site is kept up to date.) Prosper (LaTeX class for writing transparencies): http://prosper.sourceforge.net/
| |
| Subcategories:
Answers in this category: | |
| [New Answer in "Powerpoint-Style Presentations using LaTeX"] | |
| 2002-Jun-17 9:05am | |
|
|
TeXPower package |
| [Warning: The version of TeXPower described here is designated alpha. In this case, that means that the code is likely to change and the changes will not all be backwards compatible. However, the current version has most of the features you could hope for and does not appear to be buggy. (This warning is an update from one from March, 2002, at which time TeXPower was "pre-alpha".)] 2002-Oct-22 7:50am furnstahl.1@osu.edu | |
| TeXPower is a set of LaTeX style files that can be used to create dynamic presentations. The principal developer is Stephan Lehmke (Stephan.Lehmke@cs.uni-dortmund.de) but recently the TeXPower project has moved to SourceForget.net (http://texpower.sourceforge.net/). The texpower package implements the presentation effects, which include special page transitions, incremental page displays (e.g., stepping through bullet items), and color highlighting. These effects exploit the built-in capabilities of the Adobe Acroread PDF reader, which is available (at no charge) for all platforms.
You still need to use a package (or the slides class) to format your slides. Possibilities are foiltex, seminar, the LaTeX2e slides class, prosper, pdfslide, pdfscreen, ...
The features of texpower are implemented entirely using TeX and LaTeX, but the final output file must be a pdf file. There are several options, including:
I favor the pdfLaTeX approach, but your mileage may vary. | |
| Subcategories:
Answers in this category: | |
| [New Answer in "TeXPower package"] | |
| 2002-Oct-22 7:53am | |
|
|
Demonstrations and Examples |
| [Warning: These are examples from the pre-Alpha version of TeXPower!]
Here are some of the demonstration pdf files included in the TeXPower bundle: * fulldemo.pdf (http://www.physics.ohio-state.edu/~ntg/pdf/texpower/fulldemo.pdf), which demonstrates most of TeXPower's capabilities. * FAQ-display.pdf (http://www.physics.ohio-state.edu/~ntg/pdf/texpower/FAQ-display.pdf), which is the display version of the TeXPower FAQ.
| |
| TeXPower has recently moved to SourceForge.net (http://texpower.sourceforge.net/), where you can find more examples (currently for the alpha version). 2002-Oct-22 7:55am furnstahl.1@osu.edu | |
| Subcategories:
Answers in this category:
| |
| [New Answer in "Demonstrations and Examples"] | |
| 2002-Oct-22 7:58am | |
|
|
Where do I get TeXPower? |
| At the moment, TeXPower is an alpha release. You can get the current version from http://texpower.sourceforge.net/, which has a "downloads" section. Check there for the latest version. There is also a manual and a gallery there. 2002-Oct-22 7:57am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2002-Oct-22 7:57am | |
|
|
Is there a manual for TeXPower? |
| Yes. A local version is available: </~ntg/pdf/texpower/manual.pdf> (with LaTeX source </~ntg/pdf/texpower/manual.tex>), but it may be out of date as you read this. An up-to-date manual should be available from http://lrb.cs.uni-dortmund.de/~lehmke/texpower/doc.
There is also an FAQ, available in display form: </~ntg/pdf/texpower/FAQ-display.pdf> or printable form: </~ntg/pdf/texpower/FAQ-printout.pdf>. | |
| [Append to This Answer] | |
| 2002-Mar-31 9:48am | |
|
|
Using Acrobat or Acroread for Presentations |
|
2002-Mar-30 9:09am furnstahl.1@osu.edu | |
| Subcategories:
Answers in this category: | |
| [New Answer in "Using Acrobat or Acroread for Presentations"] | |
| 2002-Mar-30 11:41am | |
|
|
Where do I get an up-to-date version of the Acrobat PDF Reader (Acroread)? |
| You can get the current version from the Adobe web site at http://www.adobe.com/products/acrobat/readstep.html. The instructions will step you through the download procedure. The basic product (which is all you need) is called the Acrobat Reader. Get the latest version (largest version number) available for your platform (Windows 9x, Windows XP, Mac OS X, Linux, etc.). 2002-Mar-30 9:15am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2002-Mar-30 9:15am | |
|
|
How do I enter/exit the Acrobat Reader (Acroread) full-screen mode? |
To enter full-screen mode:
* under the View menu, select "Full Screen"
* or use the short-cut, which is usually Ctrl+L (it is listed next to
"Full Screen" under the View menu) or Command+L (on Macs)
To exit full-screen mode:
* use the "escape button" (usually marked "Esc" in upper left of keyboard)
* use the short-cut, which is usually Ctrl+L (it is listed next to
"Full Screen" under the View menu) or Command+L (on Macs)
2002-Mar-30 9:27am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2002-Mar-30 9:27am | |
|
|
What "Full Screen Preferences" are useful for Acrobat Reader? |
| You find the "Full Screen Preferences" under the File menu: File -> Preferences -> Full Screen... Useful Navigation preferences: * Advance On Any Click if you have a remote control (e.g., RF) mouse * Loop After Last Page takes you back to the beginning * Escape Key Exits --- Esc leaves full-screen mode 2002-Mar-30 11:44am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2002-Mar-30 11:44am | |
|
|
How do I create a presentation with PDFLatex? |
| See "Creating Presentations in PDFLaTeX" by Matt Welsh http://www.cs.berkeley.edu/~mdw/proj/texslides/. 2001-Oct-18 10:48am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2002-Mar-22 7:46am | |
|
|
How do I start another program from within a PDF presentation? |
| This answer is taken from the Hints and Tricks section of the Screen Presentation Tools summary (http://www.miwie.org/presentations/html/hints.html) by Michael Wiedmann.
-------------- begin excerpt ------------- Herman Bruyninckx submitted the following macros to start up movies or other programs from within a PDF presentation made with LaTeX:
The key is to write a little shell-script and launch it from within pdflatex. In the shell-script you should simply call a standard unix tool for viewing video files, e.g.: mpeg_play -controls off -dither color -position +128+96 video.mpgName this script for example videoscript.sh and make it executable. Defining the following two new commands in pdflatex, \newcommand{\pdflaunch}[1] {\pdfpageattr{/AA << /O << /S /Launch /F (#1) >>>>}}
\newcommand{\pdflaunchlink}[2]{%
\pdfannotlink attr{/Border [0 0 0]} user{/Subtype /Link /A << %
/S /Launch /F (#1) >>}%
\pdfliteral{0 1 0 0 k}%
{#2}\pdfliteral{0 0 0 1 k}\pdfendlink%
}
you have either the possibility to launch this script instantly with a new slide: \pdflaunch{videoscript.sh}
or after pressing a special link defined by: \pdflaunchlink{videoscript.sh}{Start video}
Don't forget to kill the video application when it is not needed anymore. For this purpose again define a little script e.g.: killall mpeg_play
and call it as mentioned above.
------------------ end excerpt ------------------ | |
| [Append to This Answer] | |
| 2002-Jun-17 8:59am | |
|
|
How do I automatically start a PDF presentation in full-screen mode? |
Load the hyperref package, e.g.,
\usepackage[plainpages=false]{hyperref}
and add the command:
\hypersetup{pdfpagemode=FullScreen}
(I put it just after the \usepackage commands but I don't know if the positioning is critical. I would at least put it before \begin{document}.)2002-Jun-17 9:02am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2002-Jun-17 9:02am | |
|
|
How do I include postscript figures in a TeX file? |
| A comprehensive overview is "Using Imported Graphics in LaTeX2e". A pdf version is ftp://ftp.cdrom.com/pub/tex/ctan/info/epslatex.pdf or ftp://ftp.tex.ac.uk/tex-archive/info/epslatex.pdf.
[Warning: It is over 80 pages!] 2000-Mar-29 9:38am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2000-Mar-29 9:38am | |
|
|
How do I figure out the bounding box (BoundingBox) for an encapsulated postscript file? |
Here is a section from "Using Imported Graphics in LaTeX2e"
(ftp://ftp.cdrom.com/pub/tex/ctan/info/epslatex.pdf or ftp://ftp.tex.ac.uk/tex-archive/info/epslatex.pdf):
------------ begin excerpt -------------3.2 The EPS BoundingBox By convention, the first line of a PostScript file specifies the type of PostScript and is then followed by a series of comments called the header or preamble. (Like LATEX, PostScript's comment character is %). One of these comments specifies the BoundingBox. The BoundingBox line contains four integers:
1. The x-coordinate of the lower-left corner of the BoundingBox. For example, the first 5 lines of an eps file created by gnuplot are %!PS-Adobe-2.0 EPSF-2.0 %%Creator: gnuplot %%DocumentFonts: Times-Roman %%BoundingBox: 50 50 410 302 %%EndComments Thus the gnuplot eps graphic has a lower-left corner with coordinates (50, 50) and an upper-right corner with coordinates (410, 302). The BoundingBox parameters have units of PostScript points which are 1/72 of an inch, making the above graphic's natural width 5 inches and its natural height 3.5 inches. Note that a PostScript point is slightly larger than a TEX point, which is 1/72.27 of an inch. In TEX and LATEX, PostScript points are called "big points" and abbreviated bp while TEX points are called "points" and abbreviated pt.
Single-page PostScript files without any improper commands can be converted to eps by using one of the following methods for adding a BoundingBox line. Since these methods do not check for illegal PostScript operators, they do not produce usable EPS files unless the PS files are free of forbidden operators. 1. The most convenient option is to use the ps2epsi utility distributed with Ghostscript (see Section 5), which reads the PostScript file, calculates the BoundingBox parameters, and creates an eps file (complete with a BoundingBox) which contains the PostScript graphics. The resulting file eps file is in epsi format, which means it contains a low- resolution bitmapped preview at the beginning of the file. Since this preview is ascii-encoded, it does not cause the Section 4.1 bufsize errors. However, this epsi preview increases the file size. 2. Alternatively, the BoundingBox parameters can be calculated and inserted in the PostScript file's BoundingBox line or specified in the graphics-insertion command (e.g., the \includegraphics command's bb option). There are several ways to calculate the BoundingBox parameters (a) Use Ghostview/GSview to display the PostScript graphic. As the pointer is moved around the graphic, the pointer's coordinates (with respect to the lower-left corner of the page) are displayed. To determine the BoundingBox parameters, record the pointer coordinates at the lower-left corner of the graphic and the upper-right corner of the graphic. (b) Print out a copy of the PostScript graphics and measure the horizontal and vertical distances (in inches) from the lower-left corner of the paper to the lower-left corner of the graphics. Multiply these measurements by 72 to get the BoundingBox's lower-left coordinates. Likewise, measure the distances from the lower-left corner of the paper to the upper-right corner of the graphics to get the BoundingBox's upper-right coordinates.
(c) The bbfig script uses a PostScript printer to calculate the BoundingBox.
bbfig adds some PostScript commands to the beginning of the PostScript
file and sends it to the printer. At the printer, the added PostScript
commands calculate the BoundingBox of the original PostScript file, printing the
BoundingBox coordinates superimposed on the PostScript graphic. ---------------- end excerpt ----------------- 2000-Mar-29 9:38am furnstahl.1@osu.edu | |
Here's a new way: If you have Ghostscript 6.0 (or later), the command:
gs -sDEVICE=bbox -dNOPAUSE -dBATCH file.pswill print the bounding box information for file.ps (and then exit gs). I have written a perl script that will automatically find the bounding box and correct the postscript file (or add the info if there is none). The script is </~ntg/scripts/bbox_add.pl>Be sure to make it executable: chmod +x bbox_add.plTo see the options and the defaults, bbox_add.pl --help 2001-Sep-07 5:01pm furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2001-Sep-07 5:01pm | |
|
|
Can I include a JPEG (jpg) graphic file directly into TeX or LaTeX? |
| If you want it to be portable, probably not. So you can either convert it
to encapsulated postscript (eps) using a graphics program like Gimp, or use a program called jpeg2ps, which puts
an eps wrapper on the jpeg file. This means you can treat it like a postscript
file (as long as you have at least postscript 2, which is pretty much everywhere
these days). So this is essentially like putting it directly in.
The source code (it's in C) for jpeg2ps is available from http://www.pdflib.com/jpeg2ps/.
Here is a Linux executable
(right-click on the link and save it to a file called jpeg2ps):
</~ntg/download/jpeg2ps> (of version 1.8; check the link above for updates). To create file.eps from file.jpg, the command is: jpeg2ps -o file.eps file.jpgor jpeg2ps file.jpg > file.eps 2002-Apr-02 8:19am furnstahl.1@osu.edu | |
You can find out the options to jpeg2ps by just typing it with no arguments:
jpeg2psand you'll get a list of options. I find the -a (auto rotate) option to be very useful. It automatically switches to landscape mode if the jpeg width is greater than the height. If the picture is too big to fit on a page, it will scale it appropriately. 2002-Apr-02 8:17am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2002-Apr-02 8:19am | |
|
|
Is there a way to automatically figure out and insert the bounding box in a postscript file? |
If you have Ghostscript 6.0 (or later), you can use a perl script
that will automatically find the bounding box
and correct the postscript file (or add the info if there is none).
The script is
</~ntg/scripts/bbox_add.pl>Be sure to make it executable: chmod +x bbox_add.plTo see the options and the defaults, bbox_add.pl --helpHere is what the "help" says at present: The script bbox_add.pl adds a tight bounding box to postscript files. It uses gs with the bbox option. The only mandatory command-line arguments are the names of the files to be processed. Wildcards are allowed (e.g. *.tex will process all of the TeX files.) The options are --help print this help --version version number --keep keep original file, with ".orig" appended to name --padding=i add an "i" point border around box (default is 3) 2001-Sep-07 4:59pm furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2001-Sep-07 4:59pm | |
|
|
How can I convert a TeX or LaTeX file to a text (ascii) file? |
| There is a program called detex that can be used to strip away TeX and
LaTeX commands, but it is not a great solution (it is designed to be a
pre-processor for a spelling checker).
Maybe the best solution is to generate a postscript file and then use ps2ascii to convert from postscript to ascii. From the man page: ps2ascii uses gs(1) to extract ASCII text from PostScript(tm) or
Adobe Portable Document Format (PDF) files. If no files are specified
on the command line, gs reads from standard input; but PDF input
must come from an explicitly-named file, not standard input.
If no output file is specified, the ASCII text is written to
standard output.
The short script ps2ascii should be included with your gs distribution
(on linux systems you should find it in /usr/bin, ready to go).2000-Apr-24 11:28am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2000-Apr-24 11:28am | |
|
|
Where do I get RevTeX? |
| The latest version of REVTeX is REVTeX 4; you should really switch to this one is you've been using REVTeX 3.
The homepage for REVTeX 4 is http://publish.aps.org/revtex4/, which includes documentation and the files you'll need (the latter are available as http://publish.aps.org/revtex4/revtex4.tar.gz or http://publish.aps.org/revtex4/revtex4.zip or on CTAN at http://www.ctan.org).
Basically, you just need to unzip the distribution file and put all of the LaTeX files somewhere pointed to by your TEXINPUTS environment variable (e.g., /usr/local/lib/tex/inputs is frequently used). | |
| [Append to This Answer] | |
| 2001-Sep-24 11:07am | |
|
|
How do I reduce the size of postscript figure files? |
| The following answer is taken vertabim from the FAQ at the Front for the Mathematics ArXiv http://front.math.ucdavis.edu/ifaq#3.3; check there for updates.
------------------------ begin answer ---------------------------------3.3 My Postscript figure files are bloated.
You can usually reduce or eliminate Postscript bloat if you understand your Postscript. Computers cannot understand Postscript well enough to do it automatically, because Postscript, like TeX, is a full-fledged programming language. However, two Unix utilities can often fix the problem: * convert is a bitmap-based image conversion program which is part of the
ImageMagick graphics package. It interconverts nearly 100 different image
formats, including several kinds of Postscript.
* eps2eps, which is part of the ghostscript package, converts fancy Postscript
to simple Postscript. The output is frequently much shorter than the input,
even though it is functionally identical. However, it does not help much
with bitmaps.
Here are three possible reasons that your Postscript might be bloated, together with suggested remedies.* The file is a huge bitmap. This is usually because the resolution is substantially higher than necessary, because it is a black-and-white diagram saved as a full-color photograph, or because it is encoded inefficiently (using as many as 12 bytes per pixel). If you include the figure in your TeX document without rescaling it, then you should try: 2001-Oct-09 1:57pm furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2001-Oct-09 1:57pm | |
|
|
How do I find out the LaTeX page layout parameters? |
| The layout of a page in LaTeX is dtermined by various settings such as \topmargin, \textwidth, \footskip, and so on. An easy way to find out the current settings in your document is with the \layout command from the layout package.
To use it, put \usepackage{layout}
somewhere before \begin{document} and then use the command:
\layoutsomewhere in a sample document. It will generate a diagram with the settings marked. You can change the values using \setlength, e.g., \setlength{\textwidth}{13cm}
2003-Mar-27 9:45am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2003-Mar-27 9:45am | |
|
|
Utilities |
| Useful utilities to do miscellaneous things.
| |
| Major Topics:
General Questions: | |
| [New Answer in "Utilities"] | |
| 2006-Mar-03 1:37pm | |
|
|
How do I remove <cr>'s or ^M's from a file? |
| After transferring files between different operating systems, such as DOS
or MacOS to unix or vms, one often finds cr's or ^M's at the end of every
line (when viewed in an editor). These arise because of differences between
how lines are ended in files (carriage returns and linefeeds).
A simple program to remove these extraneous characters is cr_strip.pl, which is a Perl script written by Dick Furnstahl. It is available here as http://www.physics.ohio-state.edu/~ntg/scripts/cr_strip.pl. If you use it on another system, you may need to edit the first line to specify the correct path to Perl.
Another way to remove them is to edit the file and do a substitution of these
"characters" with a null string (blanks, essentially). This can be tricky
if you don't know how to represent this character. In some editors it is
\r. | |
In emacs, you can use query-replace, if you quote the ^M with ^Q: M-X query-replace ^Q^M carriage-return carriage-return! (^Q means hold down the CONTROL key and strike the q key)2003-Jan-21 3:25pm bcd@pacific.mps.ohio-state.edu | |
On Redhat Linux systems, dos2unix and unix2dos utilities are standard.2003-Feb-18 6:37pm furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2003-Feb-18 6:37pm | |
|
|
What can I do with Microsoft Office documents on Linux? |
| For Word files, you can quickly display the text as plain ASCII text with the
antiword utility, see `man antiword'. It can also produce PostScript.
To edit and otherwise manipulate MS Office files in more detail, including also Excel and PowerPoint files, you can use OpenOffice, which is installed on the Linux hosts. To initialize it for your own use, run
and then, from the same directory, you can run
swriter (Word) scalc (Excel) simpress (PowerPoint) These programs are usually but not always successful at reading MS files. Another alternative is Crossover Office, available from codeweavers.com. This product runs the actual Microsoft programs under wine under Linux. It is a licensed commercial product. The price is reasonable but you must also purchase a license for the Microsoft software you are running. Please contact the PCF staff if you think you are interested in this, and we can help you.
| |
| [Append to This Answer] | |
| 2004-Aug-19 10:08am | |
|
|
File Permissions on Unix |
| The Unix command chmod is used to set file permissions. You can learn more about it by typing
man chmod You can see file permissions with the -l option to ls. 'ls -l' lists the permissions symbolically as I'm about to describe. The chmod command recognizes two methods of specifying a permission, symbolic and numeric. FIRST THE SYMBOLIC METHOD: There are 3 fields in a Unix file permission. From left to right they apply to user (the owner of the file), group (members of the group which owns the file) and other (everyone else). Symbolically, these are represented by the letters u, g and o respectively. Also, the letter a may be used to refer to all 3 fields at once. In each field there are 3 possible permissions which may be on or off: read, write and execute. Symbolically, these are represented by the letters r, w and x respectively. There are also 3 operators which may be used: =, which sets a field explicitly, +, which adds permissions to a field, and -, which removes permissions from a field.
Some examples of using the symbolic notation: chmod o-w filename remove write permission from other chmod g+w filename allow group members to write a file chmod u=rwx filename allow owner full access chmod go-rwx filename remove all access for non-ownersNote the meaning of these permissions for directories may not be obvious at first:
read: files in the directory may be listed, such as with the ls command So, some examples for directories:
chmod go+rx directoryname allow everyone to list and access files
(but not create or delete them)
chmod g=rwx directoryname allow group members full control of dir
NEXT THE NUMERIC METHOD: Unix file permissions are stored as a string of 9 bits. This is divided into 3 fields of 3 bits, which we represent as a 3-digit hexadecimal number, with each digit in the range of 0-7. The order is the order given above; from left to right user, group and other, and within each field from left to right read, write and execute. Read, being the first bit, is 4, write is 2 and execute is one. So all permissions turned on for a field is 4+2+1=7. Read and execute only is 4+1=5. Read and write is 4+2=6. Here are some common examples:
chmod 750 executable-file let my group and me run it, nobody else chmod 644 index.html web files MUST be world readable! chmod 755 directoryname let everyone see the files in directory chmod 600 file this file is private, nobody but me NEVER DO THESE THINGS: You can use chmod to remove access from the owner. If you do that, you cannot fix it yourself because you no longer have access! So don't do anything like these:
chmod u-rwx file chmod 077 directory chmod 77 directory (same as above!) 2006-Mar-03 2:31pm bcd@pacific.mps.ohio-state.edu | |
| [Append to This Answer] | |
| 2006-Mar-03 2:31pm | |
|
|
How do I get help on university computing questions? |
| There is searchable help (http://8help.ohio-state.edu/)
at the Help Desk Technology Support Center.
The Office of Information Technology (UIT) web pages (http://www.oit.ohio-state.edu/)
have lots of useful
information about your OSU account.
For example, you can find out About
Your OSU Internet Username
(http://www.osu.edu/units/uts/publications/security_help/username.html). | |
| [Append to This Answer] | |
| 2001-Sep-08 8:40am | |
|
|
How do I get my OSU account (name.nn@osu.edu) to forward mail to my Department account? |
| To get your OSU account to forward mail, go to the
OIT E-mail Forwarding page
(http://www.oit.ohio-state.edu/tsc/mail_forwarding.html)
or the OIT Coordinator Forwarding page
(http://www.osu.edu/units/uts/tsc/coordforward.html)
and fill in the form.
See | |
| [Append to This Answer] | |
| 2002-Apr-02 7:38am | |
|
|
An email message said I should change something on my computer and forward the warning to everyone I know. What should I do? |
| This kind of email is almost always a hoax. Be particularly suspicious of messages that tell you to forward them to everyone possible, or that are vague about factual details ("recently" or "this week" instead of "on Feb. 22, 2002", for instance).
You can check on such things at a number of helpful websites: http://hoaxbusters.ciac.org/ - The Hoaxbusters Homepage http://www.snopes2.com/ - The Urban Legends Homepage http://vil.mcafee.com/hoax.asp? - McAfee's Virus Hoax Homepage http://securityresponse.symantec.com/ - Symantec's Computer Virus Alerts Homepage And of course, you can always ask the PCF staff by email to `action' or calling 2-4269.
| |
| [Append to This Answer] | |
| 2004-Aug-19 9:51am | |
|
|
Wireless access in PRB |
|
2005-Sep-07 1:04pm jdw@mps.ohio-state.edu | |
| On Windows XP:
There are a lot of special cases that I will not cover here. Let's start with the most general case: Windows XP on a laptop using "Wireless Zero Configuration", (I guess they had to call it something). I'll assume you know what things look like on the desktop when an XP laptop detects a wireless access point... You'll get a "bubble" pop-up off the system tray, and/or you can view available wireless networks by right-clicking the wireless icon in the system tray. We have a number of access points in the PRB, arranged so that we get coverage over all of the atrium, most of the office side, and about a third of the lab side of the building. The access points have the naming convention "prb-ap-physics-rm#". When you view available wireless networks, you'll probably see more than one of the access points. Choose the one that has the strongest signal; (WZC doesn't order them by signal strength). Hit the Connect button, and you'll get a prompt for a netowrk key. the network key is:
0FE32D8EBB067AEFECB8599A62 I suggest you save the key above to a text file in notepad that you save to your desktop. Then you can cut-n-paste the key from the text file into the prompt window.
After you enter the key, hit the Connect button. You ought to get a connection. Unfortunately, you're not done. Now you need to open a browser, and go to wireless.physics.ohio-state.edu. Enter your physics email username and password. *Now* you have an authenticated connection, good until the next Sunday midnight. | |
| ========================== On Linux (Fedora Core 3): (If you are reading this while connected via the wired, network, I suggest cutting and pasting it onto your laptop so you don't have to type that long WEP key a couple lines down.)
Short version: type commands like these as root: /sbin/iwconfig eth1 essid any key 0FE32D8EBB067AEFECB8599A62 /sbin/dhclient eth1You must have the package named wireless-tools installed to get iwconfig. If you do not, you can get it by running (as root): yum -y install wireless-toolseth1 may not be the correct name for your wireless interface. You can see which one is wireless by typing: iwconfigIf dhclient complains that it is already running, you can easily kill the running instance by typing: killall dhclientNote that by setting the ESSID to 'any' in the iwconfig command, you should be able to roam from one of our access points (APs) to another without having to re-run the iwconfig command.
Once you have associated with the AP, you must (and may only) connect
with a web browser to http://wireless.physics.ohio-state.edu...where you will login using the username and password which you use for departmental email. Note well that there is no "www" in that hostname. There are other tools available for various versions of Linux which may be used to manage wireless networking. My experience with FC3 was that the above command-line commands are the most reliable. | |
| [Append to This Answer] | |
| 2005-Dec-12 8:21am | |
|
|
Library |
|
| |
| Major Topics:
General Questions: | |
| [New Answer in "Library"] | |
| 2000-Jan-14 9:34am | |
|
|
How do I request a book or journal from the OSU Book Depository? |
You can use the web interface, http://library.ohio-state.edu/search/,
to request an individual volume of a journal from the OSU Book Depository.
1. Follow the search procedure until you end up with a list of volumes
that includes the one you want.
2. Click on "Click here to REQUEST THIS ITEM" (at the top or bottom).
3. Enter your name and ss# when prompted and "Choose a Pickup Location".
4. You will then get to choose the individual volume from a long list
(by toggling a radio button at the left).
2000-Mar-25 11:55am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2000-Mar-25 11:55am | |
|
|
Linux |
| Questions about the Linux operating system.
| |
| Topics:
General questions about Linux: | |
| [New Answer in "Linux"] | |
| 2007-Jan-10 2:01pm | |
|
|
Installing Linux |
| Answers based on local experience installing Linux systems.
1999-Dec-21 1:40pm furnstahl.1@osu.edu | |
| Topics:
Questions:
| |
| [New Answer in "Installing Linux"] | |
| 1999-Dec-21 1:40pm | |
|
|
Security |
| There are lots of people out there ("crackers") who would
be delighted to break into your Linux box. As soon as you
are connected to the internet they will start trying. So it
is important to secure your machine against intrusions. | |
| Major Topics:
General Questions: | |
| [New Answer in "Security"] | |
| 2000-Mar-30 2:24pm | |
|
|
ssh (secure shell) |
| Use it!
| |
| Major Topics:
General Questions: | |
| [New Answer in "ssh (secure shell)"] | |
| 2003-Apr-07 7:10pm | |
|
|
How do I set up passwordless RSA/DSA authentication with OpenSSH? |
| A good reference is http://www-106.ibm.com/developerworks/linux/library/l-keyc.html and http://www-106.ibm.com/developerworks/library/l-keyc2/.
Here are the basic steps for DSA, which is relevant for ssh2 (which is what you should use!): 1. Set up a pair of keys (public and private) on one of your machines. ssh-keygen -t dsaYou will be prompted for a passphrase. This is like a password. Use a good one! The default names for the public and private keys (~/.ssh/id_dsa and ~/.ssh/id_dsa.pub) should be fine. 2. Copy the public key over to the any remote machines you want to access into the file ~/.ssh/authorized_keys2 (the 2 is for ssh2). (You can just append it to the end of the file.) 3. Protect the private key! IMPORTANT: You need to have the correct file protections on the ~/.ssh directory AND on the files. The ~/.ssh directory, the authorized_keys2 file, and the id_dsa file must be only accessible to you. These commands will do this: chmod 700 ~/.ssh chmod 600 ~/.ssh/id_dsa chmod 600 ~/.ssh/authorized_keys2
4. At this point, we still need to use the passphrase. If you check the second reference at the top, however, you'll find instructions for how to avoid typing the passphrase all the time. | |
| [Append to This Answer] | |
| 2003-Apr-08 8:19am | |
|
|
How do I know if my password (/etc/passwd) file has been compromised? |
| Look for these things in your /etc/passwd file:
* the last field in a passwd entry is the shell. Nothing should have a shell except for root and any user accounts that you have set up (and possibly a database like postgres). These things have something else in that entry: sync (/bin/sync), shutdown (/sbin/shutdown), xfs (/bin/false). * check the UID, which is the number in the third field (delimited by :'s). Only root should be UID 0.
* look for user names you don't recognize. | |
| [Append to This Answer] | |
| 2000-Mar-23 9:19am | |
|
|
How do I find all of the SUID and SGID files? |
You can list all of the SUID and SGID files on your system with the command
(executed as root; don't type the "#"):# find / \( -perm -004000 -o -perm -002000 \) -type f -print[If you don't run this as root, you'll get a lot of "Permission denied" commands 2000-Mar-23 9:27am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2000-Mar-23 9:27am | |
|
|
How can I tell if my machine has been cracked? |
| * Check the /etc/passwd file
see (http://ntg4004.mps.ohio-state.edu/cgi-bin/fom?file=89) for details.
* Look for /.bash_history linked to /dev/null
| |
| [Append to This Answer] | |
| 2000-Mar-23 9:31am | |
|
|
How can I automatically keep track of my system log files? |
| One possibility is the program Logcheck
http://www.psionic.com/abacus/logcheck/.
I'm trying this out: stay tuned!
Some steps in the installation: 1. Change the protection of the log files so that they are
only readable by root.
2000-Mar-30 2:52pm furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2000-Mar-30 2:52pm | |
|
|
Backing up |
| Options for backing up your files.
| |
| Major Topics:
General Questions:
| |
| [New Answer in "Backing up"] | |
| 1999-Dec-22 9:50am | |
|
|
rdist |
| rdist is a good program for backing up files and directories
to another unix system.
| |
| Major Topics:
General Questions:
| |
| [New Answer in "rdist"] | |
| 1999-Dec-22 9:46am | |
|
|
rsync |
| rsync is a replacement for rcp (remote copy) that has many more
features. Rsync Homepage: (http://rsync.samba.org/rsync/) There is an rsync Faq-O-Matic (http://rsync.samba.org/cgi-bin/rsync.fom), with answers to many of your questions.
Rsync Tutorial: (http://everythinglinux.org/rsync/) | |
| Major Topics:
General Questions: | |
| [New Answer in "rsync"] | |
| 2001-Oct-09 3:17pm | |
|
|
What is rsync? |
| From the README file:
rsync is a replacement for rcp that has many more features.
rsync uses the "rsync algorithm" which provides a very fast method for
bringing remote files into sync. It does this by sending just the
differences in the files across the link, without requiring that both
sets of files are present at one of the ends of the link beforehand.
At first glance this may seem impossible because the calculation of
diffs between two files normally requires local access to both
files. | |
| [Append to This Answer] | |
| 1999-Dec-27 9:03am | |
|
|
Applications and Utilities |
| Info on various useful utilities and applications for Linux.
| |
| Major Topics: General Questions: | |
| [New Answer in "Applications and Utilities"] | |
| 2003-Apr-04 7:56am | |
|
|
Graphics |
|
| |
| Major Topics:
General Questions: | |
| [New Answer in "Graphics"] | |
| 2001-Oct-19 8:08am | |
|
|
What are the available programs for making plots (graphics) in Linux? |
| A nice program is grace, which has an X-windows interface called xmgrace.
It is an outgrowth of xmgr. The home page is
(http://plasma-gate.weizmann.ac.il/Grace/) and there is an
FAQ (http://plasma-gate.weizmann.ac.il/Grace/doc/FAQ.html) to answer
all of your questions!
Examples of graphs generated with xmgrace (postscript files converted to gif files):
* Diagram with shading </~ntg/examples/xmgrace/fermispheres.gif>
* XY plot with arrows and legend
</~ntg/examples/xmgrace/fig_vt_ca40.gif>
* Log-log plot </~ntg/examples/xmgrace/delEoverA-CR.gif>
| |
| [Append to This Answer] | |
| 2001-Sep-09 3:41pm | |
|
|
How do I convert postscript to PDF for NSF proposals (on linux)? |
Summary so far with details below: [This is very much a work in progress!]
1. Make sure you have Ghostscript 6.0 or later
and tetex-dvips 1.0.6 or later.
2. Make sure that any figure postscript files use Type 1 fonts only
(I don't have a conversion plan yet if they don't!).
3. To convert file.dvi to an appropriate file.ps:
dvips -Ppdf -j0 -G0 -o file.ps file.dvi
4 To convert the resulting file.ps (large!) to file.pdf:
ps2pdf -dMaxSubsetPct=100 -dCompatibilityLevel=1.2 \
-dSubsetFonts=true -dEmbedAllFonts=true file.ps file.pdf
The general NSF instructions are: http://www.fastlane.nsf.gov/a1/pdfcreat.htm. rpm -q ghostscript rpm -q tetex-dvips
Here is what NSF has to say about Ghostscript:
<http://www.fastlane.nsf.gov/a1/pdfcreat.htm#Ghostscript 6.0 or higher> ps2pdf -dMaxSubsetPct=100 -dCompatibilityLevel=1.2 \
-dSubsetFonts=true -dEmbedAllFonts=true
It is important to configure dvips to use Type 1 fonts. The NSF
instructions to do this are http://www.fastlane.nsf.gov/a1/pdfcreat.htm#DVIPS. dvips -Ppdf -j0 -G0 -o file.ps file.dvi I've tried this on Linux with Ghostscript 6.0 and it produces pdf readable by the Adobe acroread viewer (AND by xpdf) with what appear to be embeddable type 1 fonts (there is still a discrepancy I'm checking). Ghostscript 6.0 rpms for Linux are available as ftp://ftp.cs.wisc.edu/ghost/aladdin/gs601/linux/ghostscript-6.01-1.i386.rpm and ftp://ftp.cs.wisc.edu/ghost/aladdin/gs601/linux/ghostscript-fonts-6.0-1.noarch.rpm (these links will no doubt be out of date by the time you read this; check http://www.cs.wisc.edu/~ghost/aladdin/ for the latest versions).
The ps2pdf page is
http://www.cs.wisc.edu/~ghost/aladdin/doc/Ps2pdf.htm. | |
| Some other (possibly) useful links [be careful---they go out of date quickly!]:
"Effective Scientific Electronic Publishing" at http://www.cl.cam.ac.uk/~mgk25/publ-tips.html "Using LaTeX to Create Quality PDF Documents for the World Wide Web" at http://www.math.uakron.edu/~dpstory/latx2pdf.html
| |
| [Append to This Answer] | |
| 2000-Apr-21 3:25pm | |
|
|
How do I generate pdf output from LaTeX (including figures)? |
| The optimal solution has been very time dependent!
A good discussion of options is a support page from the University of Minnesota http://www.msi.umn.edu/software/tex/help/pdf.html, which lists three possibilitiies: 1. LaTeX -> dvips -> ps2pdf [not recommended] 2. LaTeX -> dvipdfm [works with embedded eps figures] 3. pdflatex [most reliable; requires conversion of [e]ps figures to postscript]Also see the info at http://www.mpch-mainz.mpg.de/~joeckel/howto_pdf/howto.html.
Find out more about dvipdfm at http://gaspra.kettering.edu/dvipdfm/. There are Linux RPM's available on this page. | |
| [Append to This Answer] | |
| 2001-Oct-19 8:15am | |
|
|
MySQL |
| The MySQL database is open source and free on linux. (It costs money for commercial use on Windows.) 2001-Sep-23 1:26pm furnstahl.1@osu.edu | |
| Subcategories:
Answers in this category: | |
| [New Answer in "MySQL"] | |
| 2001-Sep-23 1:27pm | |
|
|
Where do I find documentation/tutorials for MySQL? |
| There is a list of MySQL documentation at http://www.mysql.com/documentation/index.html, which includes links to the MySQL manual (in html or other formats like PDF), the FAQ and to articles and books about MySQL.
Of the books listed on http://www.mysql.com/portal/books/html/book-1-1.html, I can vouch for MySQL by Paul DuBois. Great book on MySQL and good details on using the database with PHP and Perl.
Of the articles listed on http://www.mysql.com/articles/index.html, I can vouch for "Building a Database-Driven Web Site Using PHP and MySQL," whic is concise yet very helpful. | |
| [Append to This Answer] | |
| 2001-Sep-23 1:32pm | |
|
|
Netscape |
|
| |
| Major Topics:
General Questions: | |
| [New Answer in "Netscape"] | |
| 2001-Sep-06 8:30am | |
|
|
How do I get rid of the Shop button in Netscape? |
| From slashdot: To disable the Shop button, add to your .Xdefaults file: Netscape*toolBar.myshopping.isEnabled: falseTo disable the search/my netscape, and add a Find button: Netscape*toolBar.destinations.isEnabled: false
Netscape*toolBar.numUserCommands: 1
Netscape*toolBar.userCommand1.commandName: findInObject
Netscape*toolBar.userCommand1.labelString: Find
Netscape*toolBar.userCommand1.commandIcon: Find
Netscape*toolBar.search.isEnabled: false
Alternative method:
Put this line in your preferences.js file:
user_pref("browser.chrome.disableMyShopping", true);
2000-Feb-23 1:02pm furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2000-Feb-23 1:02pm | |
|
|
Why do apostrophes on some web pages appear as question marks in Netscape? |
| A detailed response is given at http://www.fourmilab.ch/webtools/demoroniser/. Here are some short answers from DejaNews:
Answer 1:
Answer 2 suggests sending a letter to the page owner:
I doubt your goal is to limit your audience, but this is what you have in effect done. My guess is that you
are using an on-line publishing tool provided by Microsoft, or at least running on their systems. In so doing, you have unwittingly fallen prey to Microsoft's recently revealed stated goal of killing HTML by the
"embrace/extend/extinguish" method. Illegal characters are just the start of these intentional
incompatibilities. See http://www.fourmilab.ch/webtools/demoroniser/ for details. | |
| [Append to This Answer] | |
| 2000-Mar-22 2:02pm | |
|
|
How do I get Netscape to automatically pop up gv (or ghostview) when I click on a postscript file? |
1. Under the Edit menu, select Preferences.
2. When the Preferences window pops up, select Navigator (you need
to click on the triangle to the left) and then Applications.
3. You can scroll through the application list. Find the one that
says "postscript document". Click on it and push the "edit" button.
(If there isn't one, choose "new" and fill in the info in step 4.)
4. The information at the top should be something like:
Description: postscript document
MIME Type: application/postscript
Suffixes: ai, eps, ps
5. Select "Handled by" and put
gv %s
in the box (the %s passes the file to gv).
6. Click ok until you're back to where you started!
2000-Apr-05 11:01am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2000-Apr-05 11:01am | |
|
|
|
| Questions and answers related to using PDF files on Linux.
| |
| Subcategories:
Answers in this category: | |
| [New Answer in "PDF"] | |
| 2003-Apr-04 7:56am | |
|
|
Acrobat Reader ("acroread") |
|
| |
| Subcategories:
Answers in this category: | |
| [New Answer in "Acrobat Reader ("acroread")"] | |
| 2003-Apr-04 8:07am | |
|
|
How do I set a default printer for Acrobat Reader (acroread)? |
| One choice is to set it in your .Xdefaults file, which lives in your home directory. You can specify all sorts of defaults for Acroread (or any other X-Windows application) in this file. (I think another choice is to use the .acrorc file, but I haven't tried it out. The commands are probably the same with out the *acroread at the beginning.)
To change your default printer to "/usr/bin/lpr -Psmith4035/duplex", which will print on the Smith4035 printer using duplex mode (this assumes you are using CUPS to print), add this line anywhere in your .Xdefaults file (which is just a text file): *acroread*lprCommand:/usr/bin/lpr -Psmith4035/duplexIf you want a different default print command, just change the command after the colon. A list of X "resources" (like *lprCommand) should have come with your Acroread installation. On my system, this file is: /usr/local/Acrobat5/Reader/intellinux/app-defaults/AcroRead 2003-Apr-04 8:18am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2003-Apr-04 8:18am | |
|
|
How do I make Acroread start up with a larger window? |
| One choice is to set it in your .Xdefaults file, which lives in your home directory. You can specify all sorts of defaults for Acroread (or any other X-Windows application) in this file. (I think another choice is to use the .acrorc file, but I haven't tried it out. The commands are probably the same with out the *acroread at the beginning.)
To adjust the default size of the window in which the text appears (which is called the "document shell", add these lines anywhere in your .Xdefaults file (which is just a text file): *acroread*documentShell.width:800 *acroread*documentShell.height:950which in this case sets the window to be 800 pixels wide and 950 pixels high. If you want a different default size, just change the 800 and 950. If you're not sure what numbers to use, start up Acroread and manually resize the window to the size you want. Then, in a terminal window, type: xwininfoat the prompt. You'll be told to click your mouse in the window of interest; click in the Acroread window. You'll get a lot of information about what is displayed, including the Width and Height. These are the numbers to put in your .Xdefaults file. A list of X "resources" (like *lprCommand) should have come with your Acroread installation. On my system, this file is: /usr/local/Acrobat5/Reader/intellinux/app-defaults/AcroRead 2003-Apr-04 8:17am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2003-Apr-04 8:17am | |
|
|
How do I read PDF files on a linux machine? |
| Two PDF viewers for Linux are:
xpdf --- which should already be on your machine acroread --- the official pdf viewer from Adobe. You can find RPM's from http://rpmfind.net/linux/rpm2html/search.php?query=acroread. 2001-Sep-23 1:23pm furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2003-Apr-04 7:56am | |
|
|
Printing |
|
| |
| Major Topics:
General Questions: | |
| [New Answer in "Printing"] | |
| 2000-Mar-23 11:17am | |
|
|
How do I print to a remote printer? |
| Configure your printer using linuxconf or printmandrake.
On the machine hosting the remote printer, you need to add the names of machines allowed to print to the /etc/hosts.lpd file (you may need to create it).
Just put one address (e.g., campbell.mps.ohio-state.edu) on each line. | |
| [Append to This Answer] | |
| 2000-Mar-23 11:20am | |
|
|
How do I synchronize my clock to a network (atomic) clock? |
You can use the ntp or xntp daemon. * get a current ntp rpm (e.g., ntp-4.0.99k-4.i386.rpm)
and install it
* in /etc/ntp.conf, comment out the server entries and replace with
local server ip addresses. The lines (near the top) should be:
#server 127.127.1.0 # local clock
#fudge 127.127.1.0 stratum 10
server 128.146.37.10
server 128.146.38.12
* make sure that /etc/rc.d/init.d/ntpd points to the correct function
library (/etc/rc.d/init.d/functions instead of /etc/rc.d/functions).
This may be distribution/version dependent. Just check that it points
to the correct place.
* /etc/rc.d/init.d/ntpd restart
* check /var/log/messages to see if it is working
2001-Oct-16 3:23pm furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2001-Oct-16 3:23pm | |
|
|
Linux for Physics Majors |
| This is an introduction to Linux. You might have noticed the Penguin Computing machines in room 1011R of Smith Labs. We figured it would be a good thing to answer some possible questions and guide you through the basics.
| |
| Subcategories:
Answers in this category:
| |
| [New Answer in "Linux for Physics Majors"] | |
| 2002-Oct-25 10:24am | |
|
|
What is Linux? |
| Linux was created by Linus Torvalds when he was a student of the University of Helsinki in 1991. He wanted to created a free clone of Unix for personal computers. Using ideas from Minix (a simpler and earlier Unix clone for PC's) Linus began work on his kernel as a class project. Linux is now a fully functioning clone of Unix for PC's. It is freely distributable and is covered under the GNU Public License. | |
| For more in depth information on the above subjects check out: Linux: www.linux.org GNU Public License: www.gnu.org/licenses/gpl.html | |
| Subcategories:
Answers in this category: | |
| [New Answer in "What is Linux?"] | |
| 2002-Jul-17 2:54pm | |
|
|
Is Linux an application like MS Word? |
| No, Linux is an operating system like MS Windows, MacOS, and Unix. Linux itself will not be used to write your papers, compose spreadsheets, or read your email. It is an environment where you can run applications or write programs.
| |
| [Append to This Answer] | |
| 2001-Sep-06 3:32pm | |
|
|
What's the difference between Linux and other OS's? |
| That's a pretty big question. Let's limit it to three of the most widely known operating systems: MacOS, Microsoft Windows, and Unix. The short answer is that Linux combines some of the ideas from all of these illustrious names with the added feature of being customizable by the user. This is not a very informative answer however, so we'll take this one comparison at a time.
| |
| Subcategories:
Answers in this category: | |
| [New Answer in "What's the difference between Linux and other OS's?"] | |
| 2001-Oct-22 2:47pm | |
|
|
What's the difference between Linux and MS Windows (NT, 2000, 9x, etc.)? |
| This is actually two questions. There are the Windows 9x OS's which are made specifically for the home user who does not plan on being part of a network. This includes Windows 95, 98, Me, and the new XP. There are also the versions like Windows NT and 2000 which are specifically for workgroups. Let's treat the two separately. | |
| Subcategories:
Answers in this category: | |
| [New Answer in "What's the difference between Linux and MS Windows (NT, 2000, 9x, etc.)?"] | |
| 2001-Oct-22 2:47pm | |
|
|
What's the Difference Between Linux and Windows 9x? |
| Entire books have been written on this subject. Honestly, this is completely a subjective issue. Linux is not for everyone. There are trade offs. The personal Windows OS's have many things going for them. More applications are available for Windows than Linux. Windows has thousands of highly paid software engineers working on it continuously. Windows is easy to use and does not require a vast working knowledge to run.
On the downside, Windows has a tendancy to crash. It does not respond quickly to users who find bugs. It often has problems with networking even when putting a 98 machine into a 2000 network. Linux is gaining popularity and more applications are becoming available for it. There are a couple of popular GUI's (Graphical User Interfaces) available for Linux which make it similar to using Windows. Linux is considered to be more stable than Windows; it rarely crashes. Networking is one of its greatest strengths. Bug support is often found and corrected quickly by the large number of developers who form the Linux community. Also, Linux uses the entire x86 processor and many applications run faster on Linux than on other OS's. On the other hand, Linux is best used by learning some Unix commands and using a command line interface now and then. As an OS for hackers, there may be a better turn around time for support, but it also requires a certain amount of desire to learn.
If you don't mind tinkering, exploring, and learning and are willing to put up with developing issues, Linux might be for you. On the other hand, if you would prefer a simple OS and don't mind the occasional crash or the fact that bugs will take longer to iron out, Windows might be your cup of tea.
| |
| [Append to This Answer] | |
| 2002-Jul-17 2:59pm | |
|
|
What's the Difference Between Linux and Windows NT/2000 |
| I was going to go into a relatively in depth discussion on the similarities and differences between Windows NT/2000 and Linux when I reallized something. The majority of differences between the two are at a level which the typical physics major user will not need acquaintance. In other words, we can sum it up as follows. Linux and Windows NT/2000 are both OS's used on networks. They have a number of protocols and methods for accomplishing tasks such as balancing multiple user accounts, providing security, and running software applications.
The methods used to do these things are different in the different operating systems. It should be noted however that the stability of Linux has convinced many people to use Linux for the server of a network of Windows machines. This is often accomplished through use of a program called Samba. | |
| Subcategories:
Answers in this category:
| |
| [Append to This Answer] | |
| 2001-Oct-22 2:47pm | |
|
|
What distribution of Linux do we use? |
| We are currently using Red Hat 7.2 in the Physics Undergraduate Lounge. It has Linux kernel version 2.4.2-2 and is packaged with a large number of applications. This means it includes patch 2 for version 2.4 of the Linux kernel.
| |
| [Append to This Answer] | |
| 2002-Jan-29 11:55am | |
|
|
So what's the deal with all the different distributions of Linux? |
| You may have noticed that unlike Microsoft Windows or Macintosh, Linux is put out by many different companies. In fact, there are even ways that you can get it for free on the web! What's up with that?
Quite simply, this is the result of the "open source" and "free software" movements. The Linux kernel is distributed by such companies as Debian, SuSe, and Red Hat and they sell it with a number of applications and technical support. The GNU Public License says that people are perfectly free to do this as long as they realize that other people may sell the exact same kernel for less or even nothing. In fact, it is quite easy to get the Linux kernel for free. Remember however that it will not necessarily come with any sort of guarantee or technical support like ones from major companies.
| |
| [Append to This Answer] | |
| 2002-May-20 3:12pm | |
|
|
How do I pronounce 'Linux'? |
| Lots of people pronounce it different ways, however Linus Torvalds himself has been quoted as naming it to rhyme with Minix. Hence, Linux has a short i sound, "LIH-niks".
| |
| [Append to This Answer] | |
| 2002-Oct-25 10:13am | |
|
|
What is Linux used for? |
| Linux has become very popular in recent years. Its stability and networkability have become great assets. It has become the tool of choice for many multimedia authors, application developers, systems administrators, network providers and researchers. Linux was used in the movie "Titanic" as well as for "Shrek", in order to provide the impressive visual effects.
The networking aspects of Linux are especially of interest to many big businesses and scientific communities. It is easy to log in from remote machines, share files, and run remote applications. It is easy to program on Linux in a variety of languages, and text editing with the TeX language is often done using Linux.
| |
| Subcategories:
Answers in this category:
| |
| [New Answer in "What is Linux used for?"] | |
| 2002-Jul-17 3:03pm | |
|
|
What application should I use? |
| Linux has applications which are similar to just about anything you can find on a Windows or Macintosh machine. Interested in spreadsheets? Writing a paper? Programming? Putting together a presentation or poster? We have applications for all of these things on ARRAN and MULL.
| |
| Subcategories:
Answers in this category: | |
| [New Answer in "What application should I use?"] | |
| 2002-Jul-17 3:09pm | |
|
|
What do you have similar to MS Office? |
| Our Linux boxes come with KOffice. It has a word processing program (KWord), a spreadsheet program (KSpread), a presentation application (KPresenter), a drawing tool (KIllustrator), a mail program (KMail), and a chart making program (KChart).
There is a caveat, however. While there seems to be little to no problem reading items which were written in MS Office applications, there is a definite problem writing to a format that is readable by MS Office. Still, as long as you are not attempting to switch formats, KOffice is a very good application.
| |
| [Append to This Answer] | |
| 2002-May-02 11:25am | |
|
|
What do you have similar to Photoshop? |
| There are a several applications which allow image manipulation. The GIMP is one of the most popular. GIMP stands for GNU Image Manipulation Program. Feel free to check out their website at http://www.gimp.org/ to see their online manual.
The GIMP can be used as a paint program, to edit photos, change formats of images, and batch processing among other things.
Another application used on Linux is caled ImageMagick. ImageMagick is actually a suite of tools and applications run from the command line. To run a graphical front end to ImageMagick, type the command 'display'. ImageMagick is considered to be extremely flexible by its proponents. It does, however take some time to become used to and acquainted with the many command-line options.
| |
| [Append to This Answer] | |
| 2002-May-20 4:34pm | |
|
|
What would I use to write a program? |
| I prefer to use Emacs to write my programs. If you are using the command line interface, simply type 'emacs name' where "name" is the name of your program. This will create a new file with the title "name" if it does not already exist. Otherwise, it will open the file and you can edit the file as necessary.
If on the other hand you are using the GUI, click on the start application button (it's a "K" for KDE and a foot for GNOME). From there go to Applications and select Emacs.
| |
| [Append to This Answer] | |
| 2002-Apr-11 10:17am | |
|
|
What would I use to write a scientific paper? |
| There are several options here: groff, Mathematica, and LaTeX. The most recent versions of Mathematica allow users to translate notebooks written in mathematica format into LaTeX format. Thus, some consider the real question whether to use LaTeX or groff.
Mathematica is a very powerful tool which can be used to solve mathematical problems of course, but since it has mathematical symbols and notation and since it is very good at producing graphs, figures, and images, it is often used to write scientific papers. It has the entire text of the handbook in the help file so it is relatively easy to use. LaTeX is a language whose syntax is similar to HTML. It is used to format text and can produce results of publishable quality. In fact, most papers in the serious scientific journals are produced using LaTeX or a version thereof. A good reference for LaTeX is A Guide to LaTeX 3: Document Preparation for Beginners and Advanced Users, by Helmut Kopka and Patrick W. Daly.
groff is a text processing system in the same vein as LaTeX. It is used to make the same types of documents for the most part. However, groff is better for producing documents which will be viewed online. This is because LaTeX is unable to produce plain-ASCII output while groff excels at this. Hence, groff is often used to write and to edit man pages.
| |
| [Append to This Answer] | |
| 2002-Jul-19 2:11pm | |
|
|
What would I use to solve a mathematical problem? |
| If you want a simple calculator, I suggest using the calculator programs in KDE or GNOME. Since this is for physics majors though, it is quite probable that you are looking to check your answers for your homework. In which case you will need to perform integrations, solve differential equations, or multiply matrices among other things. In that case, I recommend Mathematica.
You can access that application by typing 'mathematica' on your shell console screen. If you merely want to run the kernel, simply type 'math' instead of mathematica. For more information on running Mathematica, check the FAQ-O-Matic entry, go to www.wolfram.com, or read the help file in the application.
| |
| [Append to This Answer] | |
| 2002-May-02 10:07am | |
|
|
How Do I Use Linux? |
| In this section, we'll answer how to do some common tasks. I think it's best if we use the command line interface at first to get you used to the concept.
I should also let you know that there is a wonderful tutorial on Linux at www.linux.org/lessons/ which goes through many of the important functions and commands in Linux. Later, you can explore the GUI environment which is made to be familiar to Windows and MacOS users.
Ready? Set? Here we go!
| |
| Subcategories:
Answers in this category: | |
| [New Answer in "How Do I Use Linux?"] | |
| 2002-Oct-25 10:24am | |
|
|
How Do I use the Command Line Interface? |
| The first thing that you will notice after you've logged into ARRAN or MULL is that the taskbar on the bottom of the screen. (See, it's already like Windows). On that taskbar should be a picture of a monitor with a sea shell in front. Click on it. This will take you to the command line interface.
You should see something to the effect of [yourname@arran ~]$. You are now at the command line.
| |
| Subcategories:
Answers in this category: | |
| [New Answer in "How Do I use the Command Line Interface?"] | |
| 2002-May-23 10:19am | |
|
|
What if I don't remember what command to use? |
| What to do depends on how much you remember. There are two different approaches. If you don't remember what a particular command does or what its syntax would be, use the "man" command. If on the other hand, you know what you want to do but not the command name, "apropos" can be helpful.
| |
| Subcategories:
Answers in this category: | |
| [New Answer in "What if I don't remember what command to use?"] | |
| omarshal@campbell.mps.ohio-state.edu | |
| 2002-May-14 10:44am | |
|
|
What is the "man" command? |
| The "man" command is one of the most useful commands in Linux. (Read that last sentence again in case it hasn't sunk in.) The term "man" is short for manual. With it, you can see exactly what the user's manual says about a particular program or command. It explains how to use the command, the syntax, how it works, it may even give you ideas on how to use the command in ways that might not have occurred to you.
The "man" command. Live it, learn it, love it!
| |
| [Append to This Answer] | |
| omarshal@campbell.mps.ohio-state.edu | |
| 2002-May-14 10:43am | |
|
|
What is the "apropos" command? |
| The apropos command can help you figure out what command to use when you aren't sure what the exact term for your command is. For example, suppose that you know that you want to copy a file but you don't remember the command for that. You could type 'apropos copy' and Linux would run a search to find the string 'copy'. Your result will give you much more than you need in this case but each result will give a brief description of it's function. Looking down the list of results, you will quickly see the 'cp' command and the description 'copy files or directories'. Your search is done!
| |
| [Append to This Answer] | |
| 2002-Apr-05 3:04pm | |
|
|
What is a shell and how do I use it? |
| You may have noticed that the monitor icon on your taskbar has a picture of a seashell in front of it. Clicking that icon allows you to access the shell. But what is a shell?
The shell is a program that reads and executes user commands. It controls which processes get run and at what time. Much of flexibility (and the fun) of Linux comes from the ability to write programs called "shell scripts" to customize your workspace.
There are many different shells available for Linux. They include but are not limited to: C shell, the Bourne Again shell, Z shell, and the Korn shell.
| |
| Subcategories:
Answers in this category: | |
| [New Answer in "What is a shell and how do I use it?"] | |
| 2002-Jul-19 1:48pm | |
|
|
Which shell should I use? |
| That is completely a matter of preference. Our system is set up with tcsh (an enhanced version of the C shell) as the default. It has the advantage that the command language is similar to the C programming language, so if you are used to using C, both the C shell and tcsh are easy to use.
On the other hand, another popular shell is bash or the Bourne Again shell. Tcsh and bash have many similar features such as job control, command history, and filename completion. They differ in syntax and commands. A poll of the shells of preference for the Physics Computer Facility reveals that variety is the spice of life. Each person has a different favorite. Bash, zsh, and tcsh seem to be the three favorites. Each offer similar ways to do the same jobs.
There are many good books on shells available. I recommend any published by O'Reilly. Check out http://www.oreilly.com. Also,the university offers a class on shell programming under the CIS dept.
| |
| [Append to This Answer] | |
| 2002-Jul-19 1:50pm | |
|
|
How do I change shells? |
| To see which shell you are in at the moment, type 'echo $SHELL'. Now suppose that this shell is not what you want to be using at the moment. Switching shells is easy.
Let's suppose that you want to learn a bit of bash. Just type 'bash' at the command prompt; you'll be in the bash shell! To switch back to your original shell, just type 'exit'. Feel free to explore shells to your heart's content!
| |
| [Append to This Answer] | |
| 2002-Jul-19 1:54pm | |
|
|
How do I control printing on Linux? |
| If you want to print a file, the command is 'lpr'. This command will send whatever file you designate to the print spool to be processed. The syntax is 'lpr filename' where filename is the name of the file being printed.
| |
| Subcategories:
Answers in this category: | |
| [New Answer in "How do I control printing on Linux?"] | |
| 2002-Jul-19 2:13pm | |
|
|
How do I control which printer gets my print request? |
| If you need to send the print job to a printer other than the default printer, the -P option will help. Suppose you wanted to send a document called lab1.tex to the printer in room 2097. The syntax would be 'lpr -P smith2097 lab1.tex'.
| |
| [Append to This Answer] | |
| 2002-May-20 4:10pm | |
|
|
How do I see which printer is the default printer? |
| The default printer is easily found. Just type 'lpstat -d'. 'lpstat' stands for 'line printer status' while the '-d' represents 'default'.
| |
| [Append to This Answer] | |
| 2002-May-20 4:12pm | |
|
|
How do I change the defaul printer selection? |
The PRINTER environment variable will allow you to set a default printer. Suppose that you are using the bash shell. Then you would get into the .bashrc file and put the command:
export PRINTER = namewhere "name" is the name of the printer you want to use for your default.
Different shells will have different syntax so if you are unsure which command to use, check with your systems administrator or use a text shell scripting which applies to your shell.
| |
| [Append to This Answer] | |
| 2002-Jul-19 2:21pm | |
|
|
What is job control? |
| Job control = multitasking! It allows users to run multiple programs at once. By putting an ampersand after a command, you run the program associated with it in the background. Then it is given a job number. For example, typing 'mathematica &' might result in [1] 10500. [1] is the job number and 10500 is the process ID. Job numbers are assigned in order as you create more background jobs. You can have as many as you want, but the more you have, the slower your system will run.
To bring the job back to the foreground, type 'fg %1' or 'fg 10500'. Job numbers always take %. To stop the background job, you can type 'kill %1'.
| |
| [Append to This Answer] | |
| 2002-Jun-13 4:41pm | |
|
|
How Do I Access My Files? |
| Yeah, I suppose that would be a good thing. First you'll probably want to see them. Type 'ls'. (Don't include the quotes or period, silly!) Then hit Enter. I like to think of this command as meaning 'list stuff', but that's just me.
A listing of the files and folders in your current directory will appear on your screen. There are several subcommands you can add to 'ls' to make it even more useful. Two of the ones I use the most are '-a' and '-l'. They stand for 'all' and 'long' respectively and the syntax would be 'ls -a' or 'ls -l'. The all command will show the hidden files in your directory. The long gives more information about the files and folders you can see. I'll get back to both of these concepts later.
| |
| Subcategories:
Answers in this category:
| |
| [New Answer in "How Do I Access My Files?"] | |
| 2002-Apr-08 4:36pm | |
|
|
What if I want to write something? |
| That depends on what you want to write. Let's suppose that you want to write something in plain text. Maybe you want to write a program in C or a shell script. Maybe you want to are scripting a web page or writing an essay in TeX. Whatever, you probably want to use a text editor.
| |
| Subcategories:
Answers in this category: | |
| [New Answer in "What if I want to write something?"] | |
| 2002-May-13 4:13pm | |
|
|
Yeah, that sounds like what I want! Tell me more about text editors! |
| A text editor is similar to a word processor but without all of the bells and whistles. If you've ever used notepad on Windows, that is a text editor. You don't get spell checking or formatting. It's just plain text.
Linux comes with several types. Emacs, vi, pico, and joe are a few of the more popular ones. Emacs and vi are the most commonly used among these four. Simply type which one you want to use and the name of the file you are writing, and you will be all set. For example, you can type 'vi bob' and you would thus commence working on a file called bob in the vi text editor.
For more information on any of the above, consult the man pages. Also, emacs has a handy tutorial available in its program. Simply type 'Ctrl-h' for the help menu then type 't' to go to the tutorial.
| |
| [Append to This Answer] | |
| 2002-May-13 4:04pm | |
|
|
How do I change directories? |
| This is actually very easy. Let's say that you listed the files and directories in your current directory and you saw the following: Desktop public_html homework hello.c hello.o
Desktop, public_html, and homework are directories in this case. We can go into public_html by typing 'cd public_html'. If you want to go back to your previous level, simply type 'cd ..'. This is all nice and good if you are only going up and down one level at a time, but there will be times whem you want to make bigger leaps. If you happen to know the exact address, you can specify it. For example, you could type 'cd /net/campbell/01/your_name/homework/quantum' to take you to the quantum directory in your homework directory in your home directory. The first "/" takes you to the root directory and everything else specifies where to go from there. Hence, if you want to simply go to the root directory, you can type 'cd /' and you'll immediately go there.
Now suppose with all of this bouncing around and changing directories, you've forgotten where you are working. This can be an important thing to know after all. All you need to do is type 'pwd' for "print working directory". It's like having your very own GPS!
| |
| [Append to This Answer] | |
| 2002-Jan-30 12:04pm | |
|
|
How do I copy/move/rename a file? |
| I put these three things together because really they can all be accomplished with a couple of commands.
| |
| Subcategories:
Answers in this category: | |
| [New Answer in "How do I copy/move/rename a file?"] | |
| 2002-Jan-31 3:11pm | |
|
|
How do I copy a file? |
| The 'cp' command can be used to copy files. Here's the syntax for this command: 'cp filename_1 filename_2'. Where filename_1 is the current location of the file you wish to copy and filename_2 is the location to which you wish to copy the file.
Be careful though. If something is already at the location "filename_2", it will be overwritten without warning!
| |
| [Append to This Answer] | |
| omarshal@campbell.mps.ohio-state.edu | |
| 2002-Jan-31 11:33am | |
|
|
How do I move a file? |
| If you want to move the entire file without leaving the original copy, you should use the 'mv' command. The syntax for this command is much like that of the 'cp' command: 'mv filename_1 filename_2'. Once again, "filename_1" refers to the original address of the file and "filename_2" is where you would like to put it.
| |
| [Append to This Answer] | |
| 2002-Jan-31 11:37am | |
|
|
How do I rename a file? |
| There are actually several ways to rename a file. If you want to rename the file you can use the mv command or the cp command.
The format for the two commands are as follows:
In either case, you simply put the new name in the place of "filename_2". cp will have the result of keeping a copy of your old file while mv will move the file to the new address and delete the old copy.
| |
| [Append to This Answer] | |
| 2002-Feb-13 2:11pm | |
|
|
How do I change my password? |
| This is wonderfully simple. Let's suppose that your username is mike. Just type 'passwd mike'. Linux will guide you through changing your password. It will ask you for your old password and then ask you to type your new password. It will then ask you to retype your new password for security purposes.
For the record, you should choose a password that is a combination of lower and uppercase letters. Throwing in a few numbers is a good idea too. Don't use whole words. Not even in other languages. You never know who might try to compromise the security of a network.
| |
| [Append to This Answer] | |
| 2002-May-08 3:18pm | |
|
|
How do I shut down Linux? |
| I'm assuming that you are using one of the Linux boxes in Smith 1011R. If this is a case then as far as shutting down the computer goes ... in a word, DON'T! If there is a problem with Linux which you feel may be alleviated by rebooting the computer, email action@mps.ohio-state.edu or come to room 2180 Smith Labs and ask one of the many helpful people there to give you a hand. Please be ready with the following information.
Know which computer it is (the name of the Linux boxes is written on the machines beneath the CD-ROM drive. It will be either ARRAN or MULL followed by mps.ohio-state.edu). You should also be able to describe the problem precisely and be able to tell us what you were doing when whatever problem you are having occurred.
If you are using a version of Linux at home, check the documentation which came with your computer.
| |
| [Append to This Answer] | |
| 2002-Oct-25 10:27am | |
|
|
How do I suspend/kill jobs? |
| Suppose that you've opened a man page. Perhaps you want to pause the man page and work on something else, or maybe you found what you need and want to quit the man page. Whatever the case, you want the man out of your way. (Sorry, I couldn't resist)!
To suspend the job, type 'Ctrl z'. To kill it, type 'Ctrl \'.
| |
| [Append to This Answer] | |
| 2002-May-23 10:39am | |
|
|
How do I use the GUI (Graphical User Interface)? |
| Perhaps you have grown used to this type of interface from Windows or Macintosh and are not feeling ready to try the command line. Or perhaps you just like the feel of a mouse or trackball. No matter, you will find the GUI on Linux to be just as easy to use as either of the Big Two.
| |
| Subcategories:
Answers in this category: | |
| [New Answer in "How do I use the GUI (Graphical User Interface)?"] | |
| 2002-May-14 10:01am | |
|
|
Which GUI should I use? |
| You may have noticed that when you log in to ARRAN or MULL, you are given the option of using KDE or GNOME. These are two GUI's which came with this distribution of Linux. There are good and bad points to each.
GNOME is part of the GNU project. It stands for GNU Network Object Model Environment. You can see more info about them at http://www.gnome.org/. It seems to aim for good looks and maximum configurability. We have experienced some crashing problems with GNOME, however, so be warned. KDE on the other hand is more stable. KDE stands for K Desktop Environment. It is easy to use and strives to make users coming from Windows feel right at home. You can see more info on KDE at http://www.kde.org/.
The Physics Computer Facility recommends KDE for your choice of GUI. Subsequent answers will assume use of KDE.
| |
| [Append to This Answer] | |
| 2002-Jul-19 1:57pm | |
|
|
How do I create a shortcut on my desktop? |
| This is a little bit different than what you might be used to. Create a symbolic link to the application in your Desktop folder. The linking command is 'ln' and to make sure that it's a symbolic link add the '-s' extension. So, in order to create a shortcut, you need to get to a command line.
Hence, if you wanted to create a shortcut to Mathematica on your desktop, you would type 'ln -s mathematica Desktop/Mathematica'. This would create a symbolic link called Mathematica in the Desktop folder. A graphical shortcut will appear on the desktop.
| |
| [Append to This Answer] | |
| 2002-May-14 9:57am | |
|
|
Where else can I turn for help? |
| KDE has a help file. Just click on the picture of the book with the lightbulb on your taskbar. It will take you to the help menu where you can either look at the outline provided or run a search for what you need.
| |
| [Append to This Answer] | |
| 2002-May-14 10:05am | |
|
|
Printing |
| How do I set up printing on Linux in the Physics Dept.?
2001-Sep-26 1:33pm bcd@pacific.mps.ohio-state.edu | |
| Subcategories:
Answers in this category: | |
| [New Answer in "Printing"] | |
| 2001-Sep-26 1:34pm | |
|
|
Downloading and installing CUPS |
Download the latest CUPS rpm from RedHat and install it similarly to this: rpm -Uvh cups-1.1.9-linux-2.2-intel.rpm (you might need the `--force' option also, if it complains of conflicts with lpd files) Get the local config files: ftp://ftp.physics.ohio-state.edu/pub/linux/cups-1.1.9-config.tgz Replace the config files to talk properly to the local server: cd /etc/cups tar zxvfp /whatever/path/cups-1.1.9-config.tgz Edit /etc/cups/lpoptions to change the Default entry to a printer of your choice. This will become the default printer for anyone on this particular host. Make sure cupsd isn't running (you don't need it, and every daemon you don't run helps reduce your security vulnerability): /etc/rc.d/init.d/cups stop /sbin/chkconfig -level 0123456 cups off That's it. Wait 30 seconds or so, and type lpstat -p to see a list of printers. To change the system default printer, as root type lpoptions -d printername For documentation, see http://lpd.physics.ohio-state.edu:631/documentation.html2003-Jan-28 1:23pm bcd@pacific.mps.ohio-state.edu | |
| [Append to This Answer] | |
| 2003-Jan-28 1:23pm | |
|
|
Linux on laptops or notebooks |
| A key web page is Linux on Laptops http://www.linux-laptop.net, which has links to setup information for many (all?) laptops.
The Linux Laptop HOWTO <http://www.mobilix.org/howtos.html (which is now called the Linux-Mobile-Guide), is also worth checking out. | |
| Subcategories:
Answers in this category: | |
| [New Answer in "Linux on laptops or notebooks"] | |
| 2001-Oct-16 11:14am | |
|
|
How do I restore my network connection after a suspend/restore? |
| Look at the /etc/sysconfig/apmd file (just an ascii script that you can edit). It should be commented with details of what flags you can change to get your resume to work.
For example, I changed PCMCIARESTART="no"to PCMCIARESTART="yes"and then my pcmcia card (and my dhcp network connection) resumed fine after a suspend. To start up the pcmcia card by hand, use (as root): /etc/rc.d/init.d/pcmcia restart 2001-Oct-16 11:28am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2001-Oct-16 11:28am | |
|
|
How do I keep my laptop from freezing or otherwise screwing up when I suspend? |
| Try first going to a virtual console using ctrl-alt-F1 and then suspending. When you resume, use ctrl-alt-F7 to get back to your X-windows session. 2001-Oct-16 11:16am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2001-Oct-16 11:16am | |
|
|
How can I ftp a large file without getting a "file too large" error? |
| You may have a maximum filesize limit established by default. For example,
in Redhat Linux 6.x, the default maximum file size is 50MB. So if you try
to download a bigger file, it will stop at 50MB and give you
a "file too large" error (and probably something about a broken pipe).
You can see and change your filesize limit and other limits. The command will depend on the shell you use. If you use tcsh, then the "limit" command gives the info: ==> limit cputime unlimited filesize 50000 kbytes datasize unlimited stacksize 8192 kbytes coredumpsize 1000000 kbytes memoryuse unlimited descriptors 1024 memorylocked unlimited maxproc 256 openfiles 1024To change the filesize limit to 1GB, give the command ==> limit filesize 1000000(the number is the filesize in kbytes or kB). You can put this command in your .cshrc start-up file so that it takes effect in every shell. If you use bash, then the corresponding command is "ulimit -a" (the "-a" is for "all"). [furnstah@ntg4004 furnstah]$ ulimit -a core file size (blocks) 1000000 data seg size (kbytes) unlimited file size (blocks) 50000 max memory size (kbytes) unlimited stack size (kbytes) 8192 cpu time (seconds) unlimited max user processes 256 pipe size (512 bytes) 8 open files 1024 virtual memory (kbytes) 2105343To change the file size to 1GB, give the command [furnstah@ntg4004 furnstah]$ ulimit -f 1000000(the number is the filesize in kbytes or kB). You can put this command in one of your .bashrc start-up file so that it takes effect in every shell. 2000-Jan-25 11:26am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2000-Jan-25 11:26am | |
|
|
How do I avoid getting large core files? |
| You can set a maximum coredump file size. The default size is probably
quite large. For example,
in Redhat Linux 6.x, the default core file size is 1GB.
You can see and change your core file size limit and other limits. The command will depend on the shell you use. If you use tcsh, then the "limit" command gives the info: ==> limit cputime unlimited filesize 50000 kbytes datasize unlimited stacksize 8192 kbytes coredumpsize 1000000 kbytes memoryuse unlimited descriptors 1024 memorylocked unlimited maxproc 256 openfiles 1024To eliminate core files, give the command ==> limit coredumpsize 0You can put this command in your .cshrc start-up file so that it takes effect in every shell. If you use bash, then the corresponding command is "ulimit -a" (the "-a" is for "all"). [furnstah@ntg4004 furnstah]$ ulimit -a core file size (blocks) 1000000 data seg size (kbytes) unlimited file size (blocks) 50000 max memory size (kbytes) unlimited stack size (kbytes) 8192 cpu time (seconds) unlimited max user processes 256 pipe size (512 bytes) 8 open files 1024 virtual memory (kbytes) 2105343To eliminate core files, give the command [furnstah@ntg4004 furnstah]$ ulimit -c 0You can put this command in one of your .bashrc start-up file so that it takes effect in every shell. 2000-Jan-25 11:29am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2000-Jan-25 11:29am | |
|
|
How do I find out the screen resolution? |
You can find out what your X server thinks your dpi (dots per inch) settings are by running xdpyinfo:
$ xdpyinfo | grep resolutionYou can also find out the number of pixels and the physical dimensions in millimeters with: $ xdpyinfo | grep dimensions 2000-Jan-27 9:59pm furnstahl.1@osu.edu | |
| Major Topics:
General Questions:
| |
| [New Answer in "How do I find out the screen resolution?"] | |
| 2000-Jan-27 9:59pm | |
|
|
Skype: microphone doesn't work |
| First, you may have conflicts accessing the sound device due to something like artsd running. You can kill artsd to avoid this. That means things dependent on artsd, such as noatun, won't work.
Second, run alsamixer in a terminal window. Make sure the gain for the Mic is a reasonable level, and it is set for capture (space). Also, make sure that Capture is set to a reasonable level, and is also set to capture (!). Don't see Capture? That's because it's to the right, off of the screen. Keep using right arrow until you find it. | |
| [Append to This Answer] | |
| 2007-Jan-10 2:04pm | |
|
|
Mathematica |
| Using Mathematica on OSU computers.
| |
| Major Topics:
General Questions: | |
| [New Answer in "Mathematica"] | |
| 2002-Apr-10 3:58pm | |
|
|
Input and output from files |
| Examples of how to read from and write to data files.
| |
| Major Topics:
General Questions: | |
| [New Answer in "Input and output from files"] | |
| 1999-Dec-21 1:55pm | |
|
|
How do I output results in fortran-readable form? |
| There are two ways to do this. First, if you are using Mathematica 3.0 or higher, there is a function called FortranForm which allows you to print output in FORTRAN readable form to a file or printer. There is also a source known as MathLink which allows communication between Mathematica and various programming languages. Two sites which allow downloadable Mathlink tools are: http://www.mathsource.com/Content/Enhancements/MathLink/0206-693 and http://www.mathsource.com/Content22/Enhancements/Interfacing/Fortran/0205-43. More information on both MathLink and the FortranForm command can be found at the Mathematica website: http://www.wolfram.com | |
| [Append to This Answer] | |
| 2000-Mar-24 8:13am | |
|
|
Simplification (Simplify and FullSimplify) |
|
| |
| Subcategories:
Answers in this category: | |
| [New Answer in "Simplification (Simplify and FullSimplify)"] | |
| 2001-Nov-12 8:05am | |
|
|
How do I get Mathematica to simplify (m^-2)^(1/2)? |
The key here is getting used to what kind of assumptions to put in.
Simplify[(m^-2)^(1/2)]returns Sqrt[1/m^2] but Simplify[(m^-2)^(1/2),{m>0}]
returns 1/m. If you tell Mathematica that m is a real number, then
you get a more general answer:
Simplify[(m^-2)^(1/2),{Element[m,Reals]}]
returns 1/Abs[m].
| |
| [Append to This Answer] | |
| 2001-Nov-12 8:03am | |
|
|
Can Mathematica simplify Sin[n Pi] when n is an integer? |
Yes, just tell Mathematica that n is an integer when simplifying. So
Simplify[Sin[n Pi]]returns Sin[ n Pi] while Simplify[Sin[n Pi], Element[n,Integers]]returns 0. 2001-Nov-12 8:08am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2001-Nov-12 8:08am | |
|
|
Common Errors and Debugging |
|
| |
| Subcategories:
Answers in this category: | |
| [New Answer in "Common Errors and Debugging"] | |
| 2001-Nov-19 7:46am | |
|
|
How do I avoid errors where a denominator expression ends up in the numerator? |
One of the most common Mathematica input errors is to type:
1/2 mor even 1/2(m)when you really mean 1/(2 m) In the first two instances, Mathematica interprets the input as m/2 rather than 1/(2m). You can avoid this problem by entering your expression from a palette, so that the fraction is manifest. If you've made an input error, it will be obvious! However, this is often slow and awkward. An alternative is to enter the expression as usual but then to check your result by converting it to "Traditional Form". Here's what you do: * Select the expression to convert by highlighting it using the mouse or
by highlighting the corresponding square bracket at the far right.
* Select from the menu bar: Cell -> Convert To -> TraditionalForm
* You may want to switch back to "Standard Form" after the conversion;
Cell -> Convert To -> Standard Form will leave the fractions converted.
* It is quicker to use the keyboard shortcuts (given on the pulldown menu
when you get to the TraditionalForm menu). For Linux they are
shift-Alt-T and shift-Alt-N for converting to Traditional and Standard
forms, respectively.
* This will also convert other elements, such as integrals, to a nice form.
2001-Nov-19 7:57am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2001-Nov-19 7:57am | |
|
|
What is Mathematica? |
| Mathematica is a computer program designed by Stephen Wolfram (a former physicist, no less!) used in scientific computing, economics, medicine, and many other fields. It contains functions which allow a computer to perform a wide range of mathematical calculations from basic algebra and geometry though the calculus of variations and number theory. It has standard add on packages which allow the user to produce graphics, animations, and sound. There are also more exotic packages which are used for specific applications such as optics, fuzzy logic and wavelet analysis. More information is on the site <www.wolfram.com>.
| |
| [Append to This Answer] | |
| omarshal@mps.ohio-state.edu | |
| 2000-Feb-11 11:13am | |
|
|
How do I use command completion in Mathematica? |
| The answer may vary with the platform (Windows vs. Mac. vs. Linux).
On Linux, if you start typing a name then press Alt+k (that means hold down the Alt key and press k), then you'll get a popup menu with all of the possible commands that start with the letters you've typed. Select one and you're ready to go! | |
| [Append to This Answer] | |
| 2001-Oct-16 12:13pm | |
|
|
Where can I find Mathematica tricks? |
Here are some pages:Ted Ersek's Mathematica Tricks http://www.verbeia.com/mathematica/tips/Tricks.html
| |
| [Append to This Answer] | |
| 2001-Oct-16 12:41pm | |
|
|
Where can I find sample Mathematica notebooks with examples? |
| A local (Physics Department) page with sample notebooks and a list of resources is at: http://www.physics.ohio-state.edu/~ntg/mathematica/. 2001-Oct-26 8:23am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2001-Oct-26 8:23am | |
|
|
Is there a way to get nicely formatted input without using the palattes? |
An alternative to using the palette is to enter the expression as usual
but then to convert it to "Traditional Form" using the menus. Here's what you do:
* Select the expression to convert by highlighting it using the mouse or
by highlighting the corresponding square bracket at the far right.
(Actually, just putting the mouse at the end of the line usually works!)
* Select from the menu bar: Cell -> Convert To -> TraditionalForm
* You may want to switch back to "Standard Form" after the conversion;
Cell -> Convert To -> Standard Form will leave the fractions converted.
* It is quicker to use the keyboard shortcuts (given on the pulldown menu
when you get to the TraditionalForm menu). For Linux they are
shift-Alt-T and shift-Alt-N for converting to Traditional and Standard
forms, respectively.
* This will also convert other elements, such as integrals, to a nice form.
| |
| [Append to This Answer] | |
| 2001-Nov-19 7:59am | |
|
|
Physics |
| Under this category we'll dump anything to do with physics that is not covered elsewhere. | |
| Subcategories:
Answers in this category:
| |
| [New Answer in "Physics"] | |
| 2001-Oct-17 7:50pm | |
|
|
Sources of physics data |
| Please send email to Dick Furnstahl (furnstahl.1@osu.edu) with additional sources. 2001-Oct-17 7:51pm furnstahl.1@osu.edu | |
| Subcategories:
Answers in this category: | |
| [New Answer in "Sources of physics data"] | |
| 2001-Oct-17 7:52pm | |
|
|
Where do I find online information on particle properties? |
Go to the homepage of the Particle Data Group http://pdg.lbl.gov/.
* Specific particle listings at http://pdg.lbl.gov/2001/contents_listings.html 2001-Oct-17 7:57pm furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2001-Oct-17 7:57pm | |
|
|
Teaching |
| Questions and answers about courses, instructional methods,
etc.
| |
| Major Topics:
General Questions: | |
| [New Answer in "Teaching"] | |
| 2001-Oct-17 8:05pm | |
|
|
Courses |
|
Physics Department courses.
| |
| Courses:
General questions about Physics courses:
| |
| [New Answer in "Courses"] | |
| 2000-Apr-21 8:21am | |
|
|
H132 |
| Honors Electricity and Magnetism.
1999-Dec-20 11:50pm furnstahl.1@osu.edu | |
| Major Topics:
General Questions:
| |
| [New Answer in "H132"] | |
| 1999-Dec-21 1:50pm | |
|
|
Demonstrations |
| For most general question about demonstrations, ask Harold Whitt
(whitt@mps.ohio-state.edu) or Dick Noll (noll@mps.ohio-state.edu).
| |
| Major Topics:
General Questions:
| |
| [New Answer in "Demonstrations"] | |
| 2000-Mar-29 3:50pm | |
|
|
Computer Simulations |
|
| |
| Major Topics:
General Questions: | |
| [New Answer in "Computer Simulations"] | |
| 2000-Mar-29 3:50pm | |
|
|
Why won't the CUPS simulations run on my PC ("runtime error")? |
| Believe it or not, it is probably because your computer is too fast.
There is a bug in the version of Turbo Pascal that was used to compile
the CUPS programs, which leads to this runtime error if the clock speed
is greater than 300MHz (or is it 200MHz?).
A quick and dirty solution is to use a program that slows down your computer. One such program is "Mo 'Slo v.1.32", which is the (free) demo version. Here is the program in a self-extracting archive: </cups/moslo132.exe>. Here's what to do: 1. Save moslo132.exe and run it (double-click if in windows explorer).
It will install itself (by default into c:\moslo). The program
you'll use is called moslo.com.
2. To run c:\cups\cupqm.exe (quantum mechanics package) by slowing down
your machine 60%, use the command:
c:\moslo\moslo.com /60 c:\cups\cupsqm.exe
(I'll assume you can figure out how to change this to a different
speed or different CUPS programs!)
3. You should run it as fast as possible, so you might try 90% and stepping
down until it works.
To make a shortcut on the desktop to do all this with a double-click:
1. Go to c:\cups and drag cupqm.exe to the desktop, creating a shortcut.
2. Right-click on the shortcut and select "Properties".
3. Select the "Program" tag.
4. In the "Cmd line:" box put the command:
c:\moslo\moslo.com /60 c:\cups\cupsqm.exe
2000-Apr-07 11:14am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2000-Apr-07 11:14am | |
|
|
Physics Educational Resources |
| There are many excellent lists of resources. Please send any additional suggestions to Dick Furnstahl at furnstahl.1@osu.edu.
Lists: * Particle Physics Education Sites
http://particleadventure.org/other/othersites.html
2001-Oct-17 8:13pm furnstahl.1@osu.edu | |
| Subcategories:
Answers in this category:
| |
| [New Answer in "Physics Educational Resources"] | |
| 2001-Oct-17 8:15pm | |
|
|
Educational Software |
Lists of educational software:* PhysLink.com http://www.physlink.com/Education/Software.cfm 2001-Oct-17 8:16pm furnstahl.1@osu.edu | |
| Subcategories:
Answers in this category: | |
| [New Answer in "Educational Software"] | |
| 2001-Oct-17 8:16pm | |
|
|
Where can I get good physics (java) applets? |
There are several good collections. Unfortunately, very few are open source at present. However, they are free and parameters can be changed.
A general list of applets is at http://beta.physicsweb.org/resources/paw.phtml?k=Computing/Java+Applets&t=k&f=l. I can vouch for the ones listed below. * Physlets from Wolfgang Christian.
http://webphysics.davidson.edu/Applets/Applets.html
2001-Oct-17 8:22pm furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2001-Oct-17 8:22pm | |
|
|
How do I get a multiple choice test scanned? |
| The Office of Testing will do this for you at Room 820 in Lincoln Tower
(2-2241). Details are available at
http://www.ureg.ohio-state.edu/ourweb/tests/testscanning.html.
Highlights: | |
| [Append to This Answer] | |
| 2001-Sep-08 9:12am | |
|
|
Where can I find physics jokes? |
| A list of links to physics-related humor and fun is at PhysicsWeb http://beta.physicsweb.org/resources/paw.phtml?k=Humor+and+Fun&f=l&t=k. 2001-Oct-17 8:07pm furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2001-Oct-17 8:07pm | |
|
|
Web stuff |
|
| |
| Major Topics:
General Questions:
| |
| [New Answer in "Web stuff"] | |
| 2001-Sep-26 8:44pm | |
|
|
Making Web Pages for Courses |
|
2001-Sep-03 1:51pm furnstahl.1@osu.edu | |
| Subcategories:
Answers in this category: | |
| [New Answer in "Making Web Pages for Courses"] | |
| 2001-Sep-03 2:27pm | |
|
|
How do I allow anonymous comments on my web page? |
| In order to set up your course web page to allow for anonymous comments,
you need only add some text to your web page and the comments will be sent
through a php script (and you don't need to know how that works!). You just need to add the lines between "begin here" and "end here", changing xxx to your email address (e.g., furnstahl.1@osu.edu) and changing yyy (in two places) to your course number (e.g. H132).
--------------------------- begin here -------------------------------- <FORM METHOD="POST"
ACTION="http://www.physics.ohio-state.edu/anonymous_comments.php">
<INPUT TYPE="hidden" NAME="email" VALUE="xxx">
<INPUT TYPE="hidden" NAME="course" VALUE="yyy">
--------------------------- end here --------------------------------
Comments: * You can change the instructions ("Type your comments ...") to whatever
instructions are appropriate for your page.
* The name of the script invoked is anonymous_comments.php.
The VALUE of the first "hidden" variable sets the email address of the
recipient and the VALUE of the second "hidden" variable sets
the name of the course.
* The mail messages you receive will be from user "Nobody", and should
give the URL address for your web page (this is to alert you if someone
inserts this FORM on a different page).
* The extra spaces in the <H3 >, <P >, etc. tags are not needed. They
are just there to make the example display correctly here.
2001-Sep-03 2:29pm furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2001-Sep-03 2:29pm | |
|
|
How do I make a web page for a course? |
| A web page is simply a text file ("ascii file") with some instructions
in a markup language called html that explains what the page should like
like. Here is a sample html file: </examples/www/sample.html>
To use sample.html as a template, save it by right-clicking the link (that means to point to the link with your mouse and clicking with the right button on a PC; on a mac ???) and saving the file as text (on Netscape, select "save link as . . .", choose where you want the file to go, and switch the file format popup menu to "text".)
Any file you want the world to be able to access should be placed in your
public_html directory on Campbell (or the corresponding place on ohstpy).
Create this directory if it doesn't exist. If your user name is doe,
and you put sample.html in ~doe/public_html, then the web page is accessed
by the web address ("URL") http://www.physics.ohio-state.edu/~doe/public_html/sample.html
(if you click on this link, it will tell you that it doesn't exist, since John Doe doesn't have an account!). | |
| [Append to This Answer] | |
| 2001-Sep-03 2:27pm | |
|
|
Mozilla |
| Mozilla is an open-source web browser that is the future evolution of Netscape.
(Actually, Netscape 6 is built using Mozilla.)
See http://www.gerbilbox.com/newzilla/general/general02.php for a discussion of the differences between Mozilla and Netscape.
| |
| Subcategories:
Answers in this category: | |
| [New Answer in "Mozilla"] | |
| 2001-Sep-06 8:39am | |
|
|
Is there an FAQ for Mozilla? |
| Yes, there are many at http://www.mozilla.org/faq.html. 2001-Sep-06 8:07am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2001-Sep-06 8:07am | |
|
|
How do I Googlify (tie in the google search engine) Mozilla on Linux? |
| The details are given at http://www.google.com/mozilla/google-search.html,
which you might want to check first.
To set Google as your primary search engine. * go to Edit -> Preferences -> Navigator -> Internet Search * select "Google" from the pulldown menu under Default Search Engine
Now you should be able to search using Google from the sidebar or simply type the search query into the location box at the top and press Search. | |
| [Append to This Answer] | |
| 2001-Sep-06 8:49am | |
|
|
Physics Department Web Pages |
|
2001-Sep-06 9:31am furnstahl.1@osu.edu | |
| Subcategories:
Answers in this category: | |
| [New Answer in "Physics Department Web Pages "] | |
| 2001-Sep-06 9:37am | |
|
|
How do I add a Physics Department banner to the top of my web page? |
| There will be more options available in the future, but for now the only choice is to change your page to a "PHP" page and add a few lines. Here's what you do:
* If your web page is called mypage.html, rename it to mypage.php (everything will still work the same except possibly server-side includes, which need to be dealt with in php). <?
include ("physics/common_short.php");
physics_header("","");
?>
* That's it! In the future there will be more options controlling the small images that are randomly displayed.2001-Sep-06 9:43am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2001-Sep-06 9:43am | |
|
|
Searching |
| Strategies and resources for searching on the web.
| |
| Major Topics:
General Questions: | |
| [New Answer in "Searching"] | |
| 2001-Sep-06 8:31am | |
|
|
What search engine should I use? |
| At this time (September, 2001), there is a clear answer: http://google.com.
Google is fast, it is extremely effective in tracking down what you are looking for, and it is closely tied to the linux/open source world (e.g. the Open Directory project). Here are some comments about Google from a couple of <salon.com> articles: "It's fast and accurate, with an uncanny ability to put the thing you most wanted to find directly under your nose. The technology that makes this happen is equal parts rocket science and peer review. Google's hypertext-based system for ranking search results uses a mathematical algorithm to rate Web sites based on the number of other sites linking to them, then factors in how heavily linked those sites are. The result is a form of objectivity that springs directly from the Internet community, translating its distributed judgments into a quick, precise read of what matters and what you can do without."
"The result is a kind of automated peer review that sifts sites based on the collective wisdom of the Web itself. ...
its site-ranking approach is nearly impossible for devious webmasters to trick
or "spam," since it's based on links and judgments made by other respected sites: `You have to actually convince someone who's important that you're important.' " | |
You may find it useful to go directly to the "Advanced Search" page at
Google: http://www.google.com/advanced_search, which allows you to specify
* number of results * date range * image searchingand more. 2001-Sep-06 9:35am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2001-Sep-06 9:35am | |
|
|
How do I search old postings to newsgroups? |
| Search using google at http://groups.google.com.
You might want to start with the "advanced search" page, which is
http://groups.google.com/advanced_group_search, where you can tailor
your search in detail. | |
| [Append to This Answer] | |
| 2001-Sep-06 8:38am | |
|
|
Physics Resources on the Web |
| A good starting place to find many physics resources on the web is the PhysicsWeb site at http://physicsweb.org/. In particular, check out TIPTOP at http://physicsweb.org/TIPTOP/. 2001-Sep-23 5:54pm furnstahl.1@osu.edu | |
| Subcategories:
Answers in this category: | |
| [New Answer in "Physics Resources on the Web"] | |
| 2001-Sep-23 5:54pm | |
|
|
Where do I advertise (or look for) postdoc positions online? |
General sites:
Physics Jobs On-Line at http://physicsweb.org/TIPTOP/FORUM/JOBS/ (No charge.)
| |