Monday, December 29, 2008
Sunday, December 28, 2008
I made some folder for years, months, and quarters. I made some templates for folder arrangements. So I have years from the early 1950's through to 2008, I also have a folder full of the months and folders for quarters for different fiscal years. I can then copy and paste these templates into what ever I am organizing.
I also have made some html txt files for this blog and my studies blog for the year 2003 when these blogs were started. I hope to find all my study notes and other files that I made and store them in folders for each year and then back these up to DVD.
I have made some burn folders for the documents folder, the desktop and other files folder and the email folder for the Macbook. This is three 4.7 GB DVD's and I will make six copies for each DVD. So my back up process for 2008 has started.
Wednesday, December 24, 2008
Goal: to price the cost of owning every O'Reilly pocket reference and guide.
A web browser
a text editor.
Find a well formated web price list such as
Step 1: Web browser
Highlight the beginning of the price list (i.e. highlight the beginning of the first item/record on the web page). Scroll to the end of the list or web page. Hold your shift key down and click just after the last item/record. Now copy this highlighted list. You should have all the items highlighted
Step 2 Spreadsheet
Paste this in to an empty spreadsheet. Examine this and see if prices are on one row alone. It does not matter if there are dollar signs with the prices in the cells or also in this case a currency symbol USD. But here we find in the spreadsheet a price such as "$9.99 USD" occurring in every eighth row. The Prices should be in cells by themselves. But there is all the other stuff like the title and the blurb which here we want to parse out.
Step 3 Spreadsheet
Save the spreadsheet as a CSV file comma separated file. Remember the name and directory for the first line of R code below in the next step.
Step 4: R software ( www.r-project.org), text editor
Copy and paste the code below into a text editor
Change the directory and file name to your file and directory name from step 3 in the first and and the directory in the last line of this code. On the last line chose a file name.
Change the line jump <-(seq(x,y,z)
so that x is the first row a price occurs and y the last row a price occurs and
z is the number of rows between each price.
You can also change jump(x,y,z) to parse out all the titles or all the blurbs or all the dates published.
After editing copy the code into the R command line a line at a time
the # lines are comments
Use R software and run this code on the R command line after editing it in the text editor. Stop after each line that begins with # to check the results. good luck and use R help if needed.
###################Code Starts here##################
OPocket <-read.csv(file="/Users/ptimusk/documents/school/books/OReillyPocket08-12-24.csv", header= FALSE)
# read into R and the variable OPocket the csv file created by Excel save as csv.
#change "Users/ptimusk/documents/school/books/...to your directory
# and file name OReillyPocket08-12-24.csv
#check variable for rows that contain prices. Every foth row starting at 4 ending at 394
jump <- seq(4, 394, 5)
# create an index of rows where prices occur. Start with row 4. End with row 394
#Count by 5 rows
OPocket.Prices <- as.vector (OPocket[jump,1])
#take only the rows(indexed by "jump") with prices out of the variable OPocket
# check to see above variable contains quoted prices in 79 rows
#write the prices to a csv text file
###############Code ends here######################
Step 5 text editor
Open with the text editor the file you just wrote on the last line of R code
Save as txt
Step 6 Spreadsheet
With the spreadsheet and a new empty spreadsheet open the txt file you just saved. That should be the text file with the Prices. This file should have the variable OPocket.Prices as an R format variable.
The spreadsheet should take you through some import steps where
you can adjust the separator characters to parse out the prices only without the $
and without the currency symbol. You also parse out the first line and the quotes.
Sum the prices column
Answer: all the O'Reilly pocket references and guides will cost 851.69 $ for the 79 books.
Saturday, December 20, 2008
Wednesday, December 17, 2008
Tuesday, December 16, 2008
Sunday, December 14, 2008
I got an early Christmas present from my father. It is a new 250GB hard drive for my Macbook laptop.
I bought a new laptop hard drive. I bought a 250GB drive for 75$ from a local computer store. Here are the specs Fujitsu model MH22 BH.My brother gave me instructions to use the Leopard Time Machine software to help replace the drive. I will use Time Machine in the first step and fourth step.
The first step is to do a full back up of the Macbook hard drive using Time Machine. To do this I will use the LaCie 250 GB hard drive that I have been doing Macbook backups on. I needed to delete the most recent back up of the eMac that I had done on the LaCie 250 GB to give me enough space, 90 GB, to do a full back up of the 80 GB drive.
I am waiting for iTunes to get loaded with the new library then I will shut down all applications on the Macbook and run only the finder and Time Machine to complete the first step.
Once that first step is done I will test the Leopard Install DVD to make sure it is going to work according to the Time Machine instructions for a system restore.
Then the third step, if the Leopard Install disk appears like it is going to work, is to replace the hard drive. I will use the instructions at iFix it http://www.ifixit.com/Guide/Mac/MacBook-Core-Duo/Hard-Drive-Replacement/86/5/Page-1 to replace the hard drive. I happen to have the tools I need because I had bought a Torx T8 screw driver when I refurbished an original iBook a few years ago.
Then the fourth and final step is to follow the instructions for a system restore from the backup made by Time Machine on the LaCie 250 GB USB drive.
After iTunes is settled into using this new library (The process is about half way completed now.) I need to add the songs from the Macbook iTunes default storage location to the iTunes library. This is to make sure I have copies of all the music I have purchased from the iTunes Store using the Macbook. So in effect adding these songs from the old storage location the default iTunes folder on the Macbook will copy any songs from the Macbook not already on the storage drive. I will also add the default iTunes storage folder on the Macbook to the eMac's iTunes library.
The last step will be to reload the iPod with a good selection of the whole iTunes library. I will also resubscribe to some Podcasts I have previously deleted. I have almost 120 GB of storage on the network drive. So the present model of iPod Classic would work fine but for now I have an 8 GB Nano.
A local group I am involved with is offering a computer lab to a community centre. The idea is to run Ubuntu with the education version running terminals on old Pentium 1 and Pentium 2 computers. The donated ThinkCentre will be the server for this small lab that will allow an upgrade of the community centre's computers. This is being done for a community centre in a small town near, Ottawa, Ontario Canada.
Here is the link to the basic information about this version of Ubuntuhttp://www.ubuntu.com/products/WhatIsUbuntu/edubuntu.
Saturday, December 13, 2008
Saturday, December 06, 2008
I use a command prompt to install KDE as the desktop right from the start.