Nine hours? It would have taken you three to back up what little she had on there (knowing the type of user, she probably didn't have much of anything worth backing up) and just reinstalling Windows.
Work smarter, not harder. ;)
Nine hours? It would have taken you three to back up what little she had on there (knowing the type of user, she probably didn't have much of anything worth backing up) and just reinstalling Windows.
Work smarter, not harder. ;)
@iwpg said:
@ryos said:
Every paragraph appears to be about something differentIsn't that kinda the point of paragraphs?
The real WTF is the incoherency of this post. Every paragraph appears to be about something different, though I can't really tell for sure.
My favorite is the fourth hit on the first page, where "wtf" shows up in the raw text source of a tar.gz. Err, why is Google indexing raw .tar.gz files?
[quote user="qbolec"]I thought, the real WTF was active waiting. Isn't it slowing down the whole process?[/quote]
If I'm going to post this code, I must admit with shamed face that it was I who wrote it.
if (get name extension of curDmg) is "dmg" then
set oldDisk to get last disk
open curDmg
global mountedImage
set mountedImage to get last disk
--This loop waits until the disk image is actually mounted on the system.
--We assume here that the newest disk mounted is the value of last disk.
repeat until mountedImage is not oldDisk
set mountedImage to get last disk
end repeat
In a nutshell, this code tells a disk image to mount, then waits for it to appear (which often takes considerable time). The WTF appears when we realize that in order to get reference to the mounted disk, I simply retrieve the last mounted volume repeatedly and check it to see if it has changed. If so, this is the reference I use for subsequent operations. Any guesses on what would happen if the user plugs in a USB drive after running the script, and the USB drive mounts first?
The Real WTF, however, is that this seems to be the only way to do this; there does not appear to be any way to mount a disk image and get a reference back, or even to discover if a certain volume is associated with a certain disk image file.
The Real WTF is that they recommend an HDTV with a "4:3 contrast ratio."
When I was first learning to program at age 13 (using C), I was trying to find a value in a 2d array. I figured the computer was fast, so I'd just generate random indexes into the array until it came up with a hit. Needless to say, it didn't work.
I asked my dad for help, and he explained the joys of nested for loops. lol.
PHP does similar stuff. For example, if you forget a semicolon on one line, you'll get some completely random and unrelated error on a subsequent line, sometimes several lines down. I've learned that if an error seems bogus, I just look up a few lines for missing semicolons.