Tips

From CsWiki
Revision as of 15:48, 14 August 2018 by Irush (Talk | contribs) (Changing shell)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

There are several useful tips for working in CSE, most of the tips here are research related.

Printing in KDE

KDE is not configured properly, and therefore, if you're using KDE 3.5, in default, you might have "Print to PDF", or "Print to file", but not print to a printer...

In order to create a printer follow these steps: Make sure that your printer in .cshrc is indeed the printer that you like to print. Try echo $PRINTER to see which printer is currently your default printer. If it is not the right one, copy the following line to the end of the .cshrc file (which is in the home directory): setenv PRINTER yourprinter where yourprinter is the printer name of the printer you would like to use. I suggest restarting the system now.

Next, open kcontrol, and go to Peripherals/Printers: Make sure that the 'Print system currently used:' option is set to: 'Generic UNIX LPD Print System (default)'.

Next, click 'Add' -> 'Add special (pseudo) Printer...' The Name should be the printer's name (i.e. gr, st, nrg, etc.) The Command should be: '/usr/local/bin/lpr %in' You can put under Description and Location whatever you want. Click OK.

To make it the default printer: mark the printer you've just created, click on the 'Instances' tab, and click on the 'Set as Default' button.


Latex tips

Editing in Kile is easy. There are 2 tools that aren't enabled by default that let you search the dvi from kile, and the other way round. To do that, look at the kile handbook (by pressing F1 in kile), and look for "forward search" and "inverse search". It's really easy to install.

In case you prefer emacs, you can try using auctex. Try to google about it to see what it does. To enable it, put the following lines in your .emacs file:

 (load "auctex.el" nil t t)
 (load "preview-latex.el" nil t t)


Google Tips

In order to look for scholar articles, google scholar is a great tool. Try to go to scholar.google.com, and try to search for an article. There are several important things to notice: In the bottom right of every result, there is a link which says "All 12 versions". This is a good feature, in case you only find articles that require that you purchase the paper.

Another great tool is for importing bibtex from google scholar. This is done by going to "scholar preferences", and then choosing the Bibligraphy Manager to be bibtex. Now, at the bottom of every result there will be an "Import into BibTeX" button.

You can also use the Library Links in that page, and search for "hebrew university". This will enable links to catalogs of the huji libraries and also online catalogs.


Firefox Tips

Zotero is a very good way to keep track of papers. It's a firefox extension. Some of the features are: saving a local version of the pdf (by using "snapshot"), exporting to bibtex, creating collections, tags, searching, and much more. Try zotero for details.

In case you use the dictionary more than once a day, you should try qtl, which uses babylon.com engine. Just double click on a word inside the browser and get the translation.

SMS

Once, the perl script by Nadav Harel, sendsms, worked, and could have been used to forward email messages to sms. It no longer works. If someone knows a workaround, please update this section.


Windows using VMWare on linux

If you have a license for windows on your linux machine, type in the shell:

 runxp

Disabling the BEEP sound

Type:

xset b off

If you want it to be permanent, add it to your ~/.cshrc file.


Changing shell

As chsh isn't available, if you'd like to change your shell you can put either

if ( $?prompt && -x /bin/zsh ) then
    setenv SHELL /bin/zsh
    exec /bin/zsh
endif
if ( $?prompt && -x /bin/bash ) then
    setenv SHELL /bin/bash
    exec /bin/bash
endif


At the top of your ~/.cshrc