Tag Archive: computer science

Introduction to Mathematics

By Richard X. Thripp at 2011-03-23T20:01:55Z in Personal Development, with these tags: computer science, guides, mathematics, numbers, philosophy, power, science, truth, 0 Comments. 1052 words.

If you have 3 apple pies and 19 people, how should you slice the pies so that each person gets an equal share? Each person should get 3/19 ≈ 0.1579 pies, but if you make each pie into 6 slices, that’s only 18 slices for 19 people. You have to slice each pie into 6 and 1/3 slices, with each slice being equal except the 1/3 being smaller, and then give the three 1/3 slices to the 19th person.

What if you have 1 pie and the Half-Blood Prince from Harry Potter and the Half-Blood Prince is the only person dining? Then you have 2 pies per person, assuming he’s half a person. In the expression 1/(1/2), move the denominator to the numerator and flip the ex-denominator, making the reciprocal and thereby converting division to multiplication. 1/(1/2) becomes 1*(2/1) which is just 2, because any number without a denominator has a denominator of 1.

Your neighbor lends you $8000 at 3.75% interest compounded annually, with no payments being required for 25 years and the full balance and interest being required to be repaid at that time. What is the payment? $8000*1.0375^25 ≈ $8000*2.5102 = $20,081.34.

What if you want to make a graph of the increasing amount owed on the Cartesian coordinate system where y is the number of years and x is the dollar amount in thousands? Use the equation y = 8*(1.0375^x).

PROBLEM: Your truck gets 15 miles per gallon in the city and 19 mpg on the highway. Your destination is 38 miles away as the crow flies, 42 miles away through the cities, and 49 miles away if you take Interstate-95. However, taking the interstate requires 5 miles of city driving. How many gallons of gas will be used on each route, which one uses the least gas, and how …

Post to Twitter Post to Bebo Post to Delicious Post to Digg Post to Facebook Post to FriendFeed Post to Google Buzz Send Gmail Post to LinkedIn Post to MySpace Post to Ping.fm Post to Reddit Post to Slashdot Post to Squidoo Post to StumbleUpon

How to Create a Public Library

By Richard X. Thripp at 2008-07-26T03:33:47Z in Library Science, with these tags: barcoding, computer science, computers, creativity, internet, librarianship, new, openbiblio, php, programming, 5 Comments. 5613 words.

I’ve disappeared for the last few days because I’ve been working on The Thripp Public Library. While I can’t open it to the public yet (Dad won’t open our house to the world), I’m working on it now because I have time off and Dad’s generously donated lots of his books. Though I wanted to use Evergreen or Koha, I picked the simple and obscure OpenBiblio as my library system, because it’s the only thing I could find that would run on shared hosting. I was disappointed by the lack of features to start, but I’m starting to like the power and control with it, especially since the database makes sense, so adding new features is easy.

Before I even got started, the first step was to choose a barcoding format, classification system, and spine labeling format.

I don’t like Library of Congress (LC) classification because it’s arcane and confusing, so the Dewical Decimal system (DDC) was the default choice. But what to use it for? You can use it for everything, but I decided right away not to use it on fiction items, instead opting for “FICTION / *last name*” as the spine label and call number, which is the same as the Volusia County library system. It may not be ideal, but it’s much easier to use. Biographies are tougher. I chose DDC, but I put two lines above that say “BIO / *subject last name”. The DDC part is always “*numbers* *first three letters of the author’s last name*”. Large type items get “LT” at the top of the spine label. Spine labels == call numbers, always. I created a template file for spine labels in OpenOffice.org Writer, which I add to as I catalog books. Then when I get to twenty or thirty, …

Post to Twitter Post to Bebo Post to Delicious Post to Digg Post to Facebook Post to FriendFeed Post to Google Buzz Send Gmail Post to LinkedIn Post to MySpace Post to Ping.fm Post to Reddit Post to Slashdot Post to Squidoo Post to StumbleUpon

Dynamic Galleries and Random Images for Wordpress Photoblogs

By Richard X. Thripp at 2008-05-17T02:58:55Z in Photography Articles, with these tags: computer science, gallery, guides, thripp.com, wordpress, 7 Comments. 1088 words.

I was looking for ways to optimize my website . . . to make it quicker and easier for me to maintain and update, while being fun to browse for my visitors. The problem with the old gallery and random photos at the top of each page, was that I had to make the thumbnails and update the page and database for both (I was using the this randomizer plugin for Wordpress), each time I added a photo. It was good because I’d crop, scale down, and sharpen each image to look its best, but the extra work was too much. I found the Post Thumb plugin is the perfect solution. I installed it, set it to make 100×70 thumbnails, and then added this code to my blog header:

<?php the_random_thumb(”link=p&limit=5&category=8″); >

That makes it show five random photos from the category for my photos, linking to the page for each instead of the file. The great thing here is that the thumbnail folder and accompanying MySQL table is updated automatically, so photos are added to the pool as soon as I publish them. A random photos section is good for the casual browser, who just looks at what catches his eye.

Next, I wanted to create a dynamic gallery and random image page. I added the Exec-PHP plugin so I could use PHP code in pages and posts, but found that Wordpress inserts a line break between each thumbnail, against my wishes. For that, I added this modified version of Text Control by Jeff Minard, then setting it to not auto-format the gallery and random pages.

The code for page one of the gallery is:

<?php the_recent_thumbs(”subfolder=g&width=200&height=160&link=p&limit=60&category=8″); ?>

and for page two:

<?php the_recent_thumbs(”subfolder=g&width=200&height=160&link=p&limit=60&offset=60&category=8″); ?>

The

Post to Twitter Post to Bebo Post to Delicious Post to Digg Post to Facebook Post to FriendFeed Post to Google Buzz Send Gmail Post to LinkedIn Post to MySpace Post to Ping.fm Post to Reddit Post to Slashdot Post to Squidoo Post to StumbleUpon

ShareThis   Printable Version      
More stuff:   Quick Post on HDR    Upgraded to Wordpress 2.5    Today’s Outage  

7 Comments — join the discussion.

Leaving deviantART Forever

By Richard X. Thripp at 2008-04-19T00:05:33Z in Other, School, with these tags: computer science, education, thripp.com, 6 Comments. 772 words.

Yesterday I was contemplating what’s been holding me back in my photography and online publishing of my photography, and I’ve decided it’s maintaining my deviantart.com gallery. Since I started my own website at richardxthripp.thripp.com in December, I’ve continued to post photos to deviantART, because of my many followers there. Unfortunately, this kind of multi-casting derails too much of my time. I post each photo as prints for sale at deviantART, such as Bubble in the Sea, and that takes fifteen minutes because of their tedious interface for cropping and presentation (no one buys them). The other inconvenience is making keyword lists and linking between photos on each site (which I do manually). While I could continue to post photos to deviantART without these frills, the root of the issue is having to go to two places when I should be putting all my efforts here, my home on the Internet forever.

So, I’m breaking it off. I’m never going back to deviantART again. This is a huge step forward. I won’t be hassling myself to publicate my photos, and I’ll be focusing my efforts in one direction instead of splitting them in two. I’ve been at deviantART for two and a half years, and have had 116,000 views for my artwork. But if I’m every going to become solvent here, that won’t cut it. My last photo at deviantART was Night Meets Day. The end.

I’m finishing up my classes for Spring; last day is May 9. If you read my back to school entry from the start of the semester, you know all the crazy courses I’m taking (sixteen credit hours). Unfortunately, most of the assignments are bunched up now, with tests, essays, and projects due every class day. That’s my excuse …

Post to Twitter Post to Bebo Post to Delicious Post to Digg Post to Facebook Post to FriendFeed Post to Google Buzz Send Gmail Post to LinkedIn Post to MySpace Post to Ping.fm Post to Reddit Post to Slashdot Post to Squidoo Post to StumbleUpon

ShareThis   Printable Version      
More stuff:   Save What You Write    Photo: Speed    September 17, 2011 Update  

6 Comments — join the discussion.

No Safety in Multiple Memory Cards

By Richard X. Thripp at 2008-02-10T23:31:08Z in Photography Articles, with these tags: cameras, computer science, memory cards, myths, 5 Comments. 768 words.

For years, I’ve been hearing this wonderful argument: don’t put all your eggs in one basket; it’s better to have several smaller memory cards than one large one, so that if one fails, you’ve only lost a portion of your prized photographs, instead of all of them.

Seems to make sense, no? Distribution and redundancy are the core of safe computing, so we take this argument without question, spending extra to get four 512MB cards, even if the best bang for our collective buck is at 2GB. Yet do we ever stop to think that the entire concept is flawed?

The multi-card proponents convince us that all things equal (reliability and failure rates), four 512MB cards is the safer option.

But hold on a second there. Are the extra cards going for live, RAID-style backups? Are we afforded the advantage that while we sacrifice the space of one card, if any one card fails, no data is lost (RAID 5)? No. We have nothing. Until you get your pictures copied to your computer, there is only one copy in existence, and your work is in danger, either way. Your camera isn’t going to mirror your data for you. Maybe your fancy $3000 Canon EOS-1D Mark II does, but for us mortals, such extravagance cannot be afforded.

Remember that everything is equal, and we’ve just reached the beautiful world of digital permanence by splitting our eggs into four baskets? Billy’s 8th birthday will not be lost, because you had to spread the shots across four cards. If one fails, all is well, because you still have great shots on three other cards, right?

But it is that if that is important. Have you noticed that when you have multiples of something, you’re more likely to have …

Post to Twitter Post to Bebo Post to Delicious Post to Digg Post to Facebook Post to FriendFeed Post to Google Buzz Send Gmail Post to LinkedIn Post to MySpace Post to Ping.fm Post to Reddit Post to Slashdot Post to Squidoo Post to StumbleUpon

ShareThis   Printable Version      
More stuff:   The Death of CompactFlash?    Blueprint for a Social Network    Slow Firefox  

5 Comments — join the discussion.