Saturday, August 28, 2004

Networking my home computers is working pretty good right now. They are all ethernet connected to a D-Link DI 704 printer server/gateway box. I can print things on my windows computer from my Linux computer. I can also add files from both the Mac and the Linux computer to the WinXP laptop. This is good because the scanner seems to work on the Mac and not too well with the laptop. Also I have photoshop 4.0 LE on the Mac.

I am getting 5000 sheets of recycled paper for my printers. I am also getting a few ink cartridges for my Mac Epson Colour Stylus Photo 820 printer. Also I am getting some photo paper and some more filing supplies and crates. All these supplies are going to be ordered on-line from Staples.

I have three computers working fine now. I will be doing backups in a couple of days. I should be getting 5000 sheets of recycled paper, ink and photo paper soon.

Friday, August 27, 2004

I am studying computer crime this morning. I worked on my paper on computer crime on my Linux computer using Open Office. I read from three books early this morning.

Tuesday, August 24, 2004

This following program written in C++ is for exercise #4 in chapter 3 of Ross's Simulation 2d. By the way I looked up how to write into this blog, the less than and greater than signs in the program where the include statement is. These weren't showing up as the blog thought they were an html tag.
//
// A C++ program for integrating a continuous random variable (1-x^2)^(3/2) between 0-1 and finding its expected value or mean.//

#include <iostream>
int Kvalue;
float Svalue;
int Seed;
float x;
int countK;
float Expected;



int main()

{


std::cout << "Enter integer for random seed: ";
std::cin >> Seed;
void srand(unsigned int Seed);


std::cout << "Enter integer for length of Simulation: ";
std::cin >> Kvalue;
countK=0;
Svalue = 0;
while (Kvalue >= countK)
{

x= (float) ( rand() / (RAND_MAX + 1 ) );
Svalue= Svalue + pow((1-x*x),(3/2));


countK++;
}


Expected= Svalue/Kvalue;
std::cout << "Expected Value = ";
std::cout << Expected;
std::cout << "Svalue = ";
std::cout << Svalue;
std::cout << "Kvalue = ";
std::cout << Kvalue;
return 0;

}


Monday, August 23, 2004

I am using my Win XP laptop to do bibliographic work this morning. I will go out again this morning and pick up the Diconix printer from the shippers.

Sunday, August 22, 2004

I got samba installed on the IBM PC server and used a printer, my Epson 440 connected to my laptop with WinXP to print a Gedit highlighted version of my two C++ programs. This is for hardcopy in my hard copy binder. The binder is for this blog and other computer notes.
I started working through the simulation exercises in chapter 3 of Ross's Simulation. Here is the C++ program for simulating the random variable exp(exp(x)) between 0-1.

//
// A C++ program For integrating a continous random variable exp(exp(X)) between 0-1 and finding its expected value or mean.//
#include
int Kvalue;
float Svalue;
int Seed;
float U;
int countK;
float Expected;



int main()
{


std::cout << "Enter integer for random seed: ";
std::cin >> Seed;
void srand(unsigned int Seed);


std::cout << "Enter integer for length of Simulation: ";
std::cin >> Kvalue;
countK=0;
Svalue = 0;
while (Kvalue >= countK)
{

U= (float) ( rand() / (RAND_MAX + 1 ) );
Svalue= Svalue + exp(exp(U));


countK++;
}


Expected= Svalue/Kvalue;
std::cout << "Expected Value = ";
std::cout << Expected;
std::cout << "Svalue = ";
std::cout << Svalue;
std::cout << "Kvalue = ";
std::cout << Kvalue;
return 0;
}


Saturday, August 21, 2004

I reviewed some of Morris, Mary E. S. & Massie Paul. Cyber Careers (Mountain View, CA: Sun Microsystems, 1998). I reviewed the developing one's self chapter. I did some inch pebbles for this past week in my private journal.
After my WinXp disk formated the hard drive in the Duron computer I attempted to install Debian 3.0 r.2 which worked but then I made a mess with tasksel.
This blog is now at logbook.crystalcomputing.net.

Wednesday, August 18, 2004

I read chapter 1 in Hermanns, Holger. Interactive Markov Chains: And the Quest for Quantified Quality (Berlin: Springer, 2002). This statistics book describes a method for modeling the performance of complex systems in particular this could apply to computer systems.

I was able to download a copy of Windows XP professional with SP1 because the mathematics and statistics department has an agreement with the MSDN Academic Alliance. I needed this because the WinXP laptop I have did not come with a WinXP CD. I can now maybe try to make this laptop dual boot. The WinXP CD will be for a system recovery if the installation fails. I am now going to burn the ISO image.

Tuesday, August 17, 2004

This program inspired from chapter 3 of Ross, Sheldon. Simulation 2d (San Diego: Academic, 1997) will calculate the average value of X^2 between x=1-10 for a discrete version of x squared.

//
// A C++ program For Integrating a random variable (X^2) and finding its expected value or mean.//
#include
int Kvalue;
int Svalue;
int Seed;
int U;
int countK;
float Expected;



int main()
{


std::cout << "Enter integer for random seed: ";
std::cin >> Seed;
void srand(unsigned int Seed);
std::cout << "Enter integer for length of Integral: ";
std::cin >> Kvalue;
countK=0;
Svalue = 0;
while (Kvalue >= countK)

{

U= 1 + (int) ( 10.0 * rand() / (RAND_MAX + 1.0) );
Svalue= Svalue + U * U;


countK++;
}

Expected= Svalue/Kvalue;
std::cout << "Expected Value = ";
std::cout << Expected;
std::cout << "Svalue = ";
std::cout << Svalue;
std::cout << "Kvalue = ";
std::cout << Kvalue;
return 0;
}


I did not do any programming yesterday, but took part in a sys admin discussion. I also did some requests for school supplies meaning printer ink and paper. I also offered some computer support to my sister who needs a computer for school. I contacted the local Mac shop www.themacgroup.ca to see about getting a quote on an eMac for her. I also asked them about the availability of an old clamshell ibook they have for sale for 600$.

Although I did not do any programming I did set up some music gear and record my wife and myself playing music using Audacity. So far this is trouble free software and I am having some good newbie experiences with this recording software.

Sunday, August 15, 2004

I am reading this book today and yesterday: Ross, Sheldon. Simulation 2d (San Diego: Academic, 1997). I am trying to make the computer program from chapter 3 for integrating a random variable run a number of times in a loop using a psuedorandom number generator. The book has an example in BASIC. I am trying to write a similar program in C++. I have been searching the web for C++ syntax and so forth. It is not complete yet. I have the below code done so far but I am not returning a random number the right way yet.


Here is my code adopted from a simple C++ IO program from a basic learning C++ book using Quincy as my developer environment and of course gcc.



//
// A Simple C++ program For Integrating a random variable (X^2) and finding its expected value or mean.//
#include




int main()
{
int Kvalue;
float Svalue;
int Seed;
float U;
int countK;
float Expected;

std::cout << "Enter integer for random seed: ";
std::cin >> Seed;
void srand(unsigned int Seed);


std::cout << "Enter integer for length of Integral: ";
std::cin >> Kvalue;
countK=0;
Svalue = 0;
while (Kvalue >= countK)
{

float rand(U);
Svalue= Svalue + U*U;
countK++;
}

Expected= Svalue/Kvalue;
std::cout << "Expected Value = ";
std::cout << Expected;
std::cout << "Svalue = ";
std::cout << Svalue;
std::cout << "Kvalue = ";
std::cout << Kvalue;
return 0;
}

Sunday, August 08, 2004

I just read in Cross, David. Data Munging with Perl (Greenwich, CT: Manning, 2001) that Unix measures time elapsed since Thursday, January 1st 1970. It measures it in seconds. Try this command on a Unix box or Macintosh running OSX.



perl -e "print time";



for user friendly time



perl -e "print scalar localtime";



When was a billion seconds?




perl -e "print scalar localtime(1_000_000_000)";



that's all btw this date is very close to September 11, 2001. Does this mean that Unix is involved in terrorism?

I bought a friend a used Apple Colour Style Writer 2400. Apple spec page here: http://docs.info.apple.com/article.html?artnum=112500. It was about 4 CND plus heavy shipping costs.

Thursday, August 05, 2004

I bought our first air conditioner today. It has a computer inside and it has a remote control. I have installed two air conditioners this summer for elders. I will install ours next Tuesday evening. It has 10,000 BTU's and uses 980 watts of power.