Archive

Archive for the ‘Computers’ Category

Saving a Geocities Site

August 12th, 2009 No comments

Yahoo’s Geocities.com is being converted / taken offline (it will no longer be the Geocities we’ve known since the mid-nineties).

A friend asked me how to save Geocities sites (she has 51 sites!).  Do the following for each site.

Preparing for the Download

First, go into the GeoCities file manager, and rename the index.html files to index2.html.  (Check the box beside index.html and press the “Rename” button at the top.)  This way the server will show the “Index Of” page when you go to the site: http://www.geocities.com/mysite

There should be no Yahoo sidebars, not banners, no pop-ups, nothing to confuse the downloading program.

Performing the Download

Using linux, it’s easy.  First be sure you have the “wget” utility installed.  On Debian (lenny), I just typed:

apt-get install wget

Then, I changed to an empty directory and issued the wget command:

wget --continue --recursive --tries=inf --limit-rate=0.8k --convert-links --html-extension --no-clobber \
-P ./mysite http://geocities.com/mysite

This will be agonizingly slow, but I find the transfer quota (typically~4MB per hour for a free user) can be prohibitive.  Exceeding the hourly transfer limitation causes the script to download the same error page for all subsequent files.  Remove the “–limit-rate=0.8k” part if you pay for sufficient hourly transfer.

Automating the Download

I wrote a script accepting a commandline argument specifying the name of the geocities site.

Invocation for http://www.geocities.com/mysite:

./geodownload.sh mysite

Here is the script:

#!/bin/bash
wdir=`pwd`
wget --continue --recursive --tries=inf --limit-rate=0.8k --convert-links --html-extension -P ./$1 http://geocities.com/$1
mv $wdir/$1/geocities.com/$1/index.html $wdir/$1/geocities.com/$1/index.html.bak
mv $wdir/$1/geocities.com/$1/index2.html $wdir/$1/geocities.com/$1/index.html
Categories: Computers, HOW-TOs

MidpSSH on Blackberry

July 8th, 2009 No comments

At last, I have a data plan and can administer machines from my Blackberry.  It’s probably only worthwhile in a pinch, for rebooting, etc., but just the capability is comforting.  As usual, there was a challenge – installing the application.

If you have problems downloading and installing the SSH client midlet, particularly the “907″ error I received, use the OTA (over the air) link below:

http://ota.deltatech.com.mx/

For more information, check out the forums:

http://www.blackberryforums.com/aftermarket-software/152316-custom-build-midpssh-blackberries.html

Oh, and one last thing: Google Mobile Applications are a must.  Just go to google.com on the phone and download the application.  You’ll probably have to install Google Maps separately (I did), but their software facilitates installing each of the offerings.  Google Maps is amazing.  I didn’t receive any GPS satelites inside my house (according to the Blackberry advanced settings), but Google Maps triangulated my position to less than 100 feet, apparently without GPS signal.  While that’ s unlikely, what I appreciate most is that it just works.  I’m amazed; as long as I stay off Twitter, Facebook, etc. this will be a huge improvement!

UPDATE: I started receiving email on my phone, and this was a bad idea.  I couldn’t distinguish between text and email notifications, and the email just started coming at me.  If only Blackberry wasn’t so “push”y.  I tried to turn off email notifications, and preferably, I’d like to do all phone email on-demand rather than automatic delivery.  For that, I figure one can just use the clunky web browser.

iPhone Comparison: Kristin got an iPhone, and there is just no comparison of the user interface, web browsability & rendering, or usability.  There is no question Apple has the music player thing figured out.  The Blackberry on the other hand, just isn’t as convenient, and it’s not because of Apple’s iTunes; I’m just talking about the phone software.  The Blackberry interface does excel, however, at typing.  I found the Pearl’s doubled-up QWERTY keyboard works well and the custom dictionary and predictive text are good.  I’m sure it’s much easier to text while driving or riding a bike, but how would I know anything about that?  I’ve also heard friends who migrated say they preferred the tactile button layout for its navigability.

Categories: Computers, HOW-TOs

Pictures Disappeared from my Camera Memory Card!

February 27th, 2009 No comments

If your photos or videos suddenly vanish, stop using the storage device until you run a recovery.  It worked for me.

Somewhat unbelievably, this isn’t the first time all of the pictures on one of my camera memory cards have suddenly disappeared.  Well don’t worry, using testdisk / PhotoRec 6.10, you can automatically retrieve files which are present but not acccessible.  Even if the files are mysteriously deleted, they are seldom erased – especially if you do not write any more files to the device after the deletion!

I simply installed testdisk on my Mac, plugged in the memory card, and chose to process the disk.  After answering a couple of technical questions about the partition table type and file system (easy for USB or camera memory cards: almost always Intel and FAT, respectively), the software had already recovered 251 jpg files and 14 mpg files in less than 15 minutes (from a 4GB media card).  Wonderful!

(NOTE: if the card had been full, this would have taken much longer)

Doing the Recovery

PhotoRec 6.10 (Screenshot)
http://www.cgsecurity.org/wiki/TestDisk_Download

NB: The software is terminal-mode, so you’ll need to be familiar with command prompts on the Mac.  If you’re not, just find a friend who is… and clarify that you need someone who isn’t just tech-trendy but is tech-savvy!

You’ll need to do things like (I forget the exact procedure, but it’s standard for the linux/UNIX community):

#(extract the files)
tar -xzf TestDisk.tar.gz
#(view the readme file)
less README
#(configure)
make configure
#(install)
make install
Categories: Computers, HOW-TOs

Problems with Windows and Linux on ASUS P5W DH Deluxe

January 12th, 2009 No comments

I had problems booting into Knoppix, Debian 4.0 “Etch” netinstall, and one or two other flavors of linux on my ASUS P5W DH Deluxe motherboard. If you have this problem boot with the “irqpoll” option.  I’m sure this can’t be the best thing, and shouldn’t be necessary, but it is in this circumstance.  Examples: “install irqpoll” and “knoppix irqpoll”

The two symptoms I observed were:

  1. Knoppix boots from the CD at first, but then it cannot load the kernel.
  2. The Debian installer hangs when enumerating the hard disks (particularly an IDE disk on the JMicron RAID controller)

Windows had no such problems when I installed it.  However, it did have what appeared to be a significant IRQ-sharing issue- choppy/stuttering audio whenever playing music or movies. Read more…

Categories: Computers, HOW-TOs

John Walker, AutoCAD, and Farming with Dynamite

November 27th, 2008 1 comment

John Walker seems to be an amazing guy.  I just happened upon his site, and let’s just say, well, for a start, that he invented [pioneered?] AutoCAD.  Whoah.  OK, that software that I first heard about back when my family had a Windows 3.1 computer [and I was using the much cheaper TurboCAD].  And today, literally today, I’m using AutoDesk AutoCAD 2009 to design microscale patterns for a photolithographic mask plate.  “Bravo,” and “thank you” to this guy.

A side note: AutoCAD is actually so cool that it supports scripting in numerous ways.  I remember an architect (“Mr. MacNeil” when I was in Middle School) explained to me that there was a LISP programming interface for AutoCAD.  Well, LISP and Scheme can be very cumbersome to use, so I opted for the Visual Basic for Applications (VBA) route.  This is very convenient.  I was able, using the “Application” object and “Drawing” object, to automatically generate massive interdigital transducer (IDT) structures according to exact mathematical formulations.  (See graphic below with 125 comb-like finger pairs).

Sinc Function Apodized IDT

Alright, utility and appreciation aside, John Walker has a very interesting web site.  I figure after inventing [pioneering] AutoCAD and collecting some serious profits (from engineers like me or institutions like Georgia Tech), he has plenty of resources to pursue physics, history, and basement tinkering.  Here are just some of my favorites from his website:

[I made updates to this post following a comment from an anonymous commenter from a supposed-competitor, IntelliCAD.  Apparently John Walker didn't "invent" the software, but I also doubt he bought it in anything remotely resembling what AutoDesk/AutoCAD are today.  Furthermore, I wouldn't fault Mr. Walker at all for having the vision to purchase and globalize a very worthy software product.  This sounds a bit like the Microsoft story.  However, if John claims to invent something which he purportedly did not, then that is a concern.  Regardless, I hope people will check out his site and at least feel inspired by his authentic tinkering and creativity.]

Categories: Computers, Reading