Header image  
computer tips & tricks  
 
    home
 
Generel information

Her vil du kunne finde tips og tricks til at loese diverse computerproblemer.


Styresystem

Problemer med opdatering af Vista (Windows Update)

Jeg har haft et problem med at faa installeret sikkerhedsopdateringen KB931213 i min Windows Vista og fik fejlkode 800736CC. Efter at have googlet lidt, fandt jeg en fornuftig loesning af problemet her:

  1. Aabn "Computer" og erstat "Computer" med "Windows\SoftwareDistribution\Download" i feltet ved siden af "Soeg".
  2. Led i samtilige mapper efter en fil, som hedder noget med opdateringen, som ikke vil installere (i mit tilfaelde noget med KB931213).
  3. Lav en sikkerhedskopi af mappen, hvor de(n) paagaeldende fil(er) ligger og slet derefter mappen.
  4. Hvis vinduet med Windows Update er aabent, saa luk det. Herefter skulle Vista gaa igang med at hente opdateringer, ellers saa genstart computeren.
  5. Nu burde de fejlslagne opdateringer blive installeret korrekt (ellers proev proceduren igen).

Nyancer ved OS X - mounte via ssh og indstilling af systemressourcer

  • Under mit ophold ved fysisk institut paa K-State University i Kansas har jeg vaeret ude for, at der ikke er samba-konnektivitet til faellesdrevet, da instituttets maskiner er linux baserede og ikke Windows baserede. I denne situation skal man mounte drevet via ssh, og det kan finder ikke. En bekvem loesning paa dette problem er (i kombination) at anvende programmerne MacFUSE og Macfusion, som kan findes her.
  • For at tildele alle ledige ressourcer paa sin Mac til en "shell", skal man ikke bruge ulimit -s unlimited, MEN ulimit -Ss unlimited.


Programming (physics)

Doing Fast Fourier Transforms with the FFTW3 library

FFTW3 is an effiecient Fast Fourier Transform package. It is distributed with the intel fortran compiler.

It is very easy to use. For example to do a forward discrete Fourier transform of real data you essentially need the following lines of code to your Fortran file:

include "fftw3.f"

...

call dfftw_plan_dft_r2c_1d(plan,nt,d,Aw,FFTW_ESTIMATE)
call dfftw_execute(plan)
call dfftw_destroy_plan(plan)

where plan is an integer, d is the nt real data points to be transformed, and Aw is the (complex) transformed data set of length nt/2+1.

To use the FFTW3, which comes with the intel fortran compiler you need to go through the following steps:

  1. The first time ever the FFTW3 library is used on the machine you should locate your mkl path, MKL_PATH (e.g., "/opt/intel/Compiler/11.0/056/Frameworks/mkl" or "/home/com/intel/mkl/10.0.1.014"). Then you will need to build the FFTW3 Fortran wrapper. This is done by typing, e.g., "make libem64t" from "MKL_PATH/interfaces/ffw3xf". You should now have a library called "libfftw3xf_intel.a" under "MKL_PATH/lib/em64t".
  2. When compiling your Fortran code make sure to include "MKL_PATH/include/fftw" under FFLAGS and " -lfftw3xf_intel -lmkl_intel_lp64 -lmkl_sequential -lmkl_core" under LDFLAGS.

Note: In case you get an error like "error while loading shared libraries: libmkl_intel_lp64.so: cannot open shared object file: No such file or directory" when trying to compile or run your program, you should find the path containing libmkl_intel_lp64.so and provide this path using the export /setenv for the Bourne shell/C-shell.