Tuorla observational cosmology group

We are presently involved in running and analysing cosmological simulations on variety of scales and aspects together with our collaborators. Our current projects are described more precisely on their own pages. We are located at the University of Turku, Tuorla Observatory.

In our simulations we are efficiently using supercomputers at CSC, the Finnish IT center for science.

Current team members are the following:

Contact information:


Tuorla Observatory
Väisäläntie 20
FI-21500 PIIKKIÖ
Finland

Fax: +358 2 243 3767

Email: firstname.lastname@utu.fi



#!/usr/local/bin/perl # hits.pl # # This program counts hits, to a web page. # It does not count visitors. # The file name used to count hits is generated using # the environment variable DOCUMENT_NAME provided by SSI. # This feature allows this script to be run from any page, # but still keep counts for each page they are run from. # The name of each file that you are tracking hits on must be different # for this to work correctly. # Of course you'll need a line like: # # to implement your SSI and your server must support SSI to # implement the counter in this manner. # # Set the file name up. $HcntFile = "../data/$ENV{'DOCUMENT_NAME'}$ENV{'QUERY_STRING'}hits.dat"; # # Open and read the file. # $HitCounts is set to 0 if the file doesn't exist. open (COUNTHAND, "<$HcntFile"); $HitCounts = ; # Close the file input and open it to truncate output # Should we worry about locking the file in case another process # uses it? Probably not since if we take that many hits # missing a few won't matter and we're too busy to be concerned. close (COUNTHAND); open (COUNTHAND, ">$HcntFile"); # Increment $Counter, then write it back out. Put up a message # with the new value. Close the file and exit. $HitCounts += 1; print COUNTHAND $HitCounts; # flock (COUNTHAND, 8); close (COUNTHAND); print "Content-type: text/html", "\n\n"; # MIME header. print "", "\n"; print ""; print "General Hit Counter", "\n"; print "", "\n"; print "", "\n"; print "

Hits on this Page: $HitCounts.

\n"; print "", "\n"; print "", "\n"; # End access.pl






Last modified: 14.10.2014


This site is © Copyright Tuorla Cosmological Simulations Research Group, All Rights Reserved