Sunday, October 30, 2011

"Some Postscript specials could not be rendered" error




This is a problem encountered while practicing with MikTex and WinEdt in the windows environment. Solution is simple: Select dvips option from the Render Menu. This should solve the problem.

Metric (TFM) file not found error

While using pifont package and ding expression, I had the following error with the Latex:

! Font U/psy/m/n/12=psyr at 12.0pt not loadable: Metric (TFM) file not found.
<to be read again>

relax

l.64 {\Pifont{psy}

}

?
This is partially solved by dowloading the "symbol" package from the Package manager of the MiKTex

Wednesday, October 19, 2011

Changing the location of multiple screens/monitors in Windows 7

If you have multiple screens, you can change their respective locations by simply dragging and dropping the desired monitor wherever you want using the Windows 7 settings menu.

Basically, under Control Panel, go to Display menu and choose Adjust resolution option. The following window will pop up and then you can simply drag and drop.

     

Friday, October 14, 2011

Adding subdirectories to the CVS repository


Assume a scenario where you create a new directory for testing your source code and you want to check in this new directory to the CVS. However, this directory has several subdirectories and the subdirectories also have some subdirectories as well. (e.g. consider a scenario where the test results and input files for a certain action are stored independently for a given subdirectory).

To check in the main directory and subdirectories, you can perform the following steps:
  • First add the main directory to the CVS by typing
cvs add main_directory


This will schedule the addition of this directory to the CVS repository. However, a cvs commit is still necessary.
  •  Then cvs add the subdirectories via
find main_directory -type d -print | xargs cvs add

which basically finds the all subdirectories and schedules their cvs add to the repository
  • Once this is done, cvs commit should be performed for each of the file within the main and subdirectories. Without cvs commit you will not get them updated.

For a detailed description, check this link:


Tuesday, October 11, 2011

How to delete multiple files using TCL?

In TCL, deleting a single file is easy, just type:
file delete filename
However, if you want to delete hundreds of lines, simply typing file delete filenames* does not work. Instead, I found the following to work:
eval file delete [glob filenames*]

Sunday, October 09, 2011

Standing Wave Pattern (SWR) and Propagation in Lossy Medium




This animation serves as complementary to a previously uploaded one (http://www.youtube.com/watch?v=s5MBno0PZjE) where the medium were lossless. This time, the medium onto which the wave is impinging is lossy and we demonstrate the time-domain propagation of a uniform plane wave traveling in the +z direction and normally incident on the medium interface (at z=0). Again, only the electric field intensity is shown.

The top figure shows the incident (blue), reflected (red), incident+reflected (teal) and transmitted field in both media. In the bottom figure, the standing wave patterns created in both media are shown. Also, the decaying nature of the electromagnetic wave due to lossy nature of the medium is evident in the lossy medium.