Failing Miserably, If Not Inventively
by Kevin Hemenway02/06/2004
I am, by other people's definitions, an obsessively and dangerously organized power user. I co-wrote Mac OS X Hacks (for making your computer jump through hoops), the recently released Spidering Hacks (for repurposing data scraped from the Web), and have been listed as an example for Danny O'Brien's Life Hacks: Tech Secrets of Overprolific Alpha Geeks at O'Reilly's next Emerging Tech conference.
When something hits me, I'll drop everything I'm behind deadline on and spend 20 hours automating a task that takes five manual minutes; I know I'll eventually recoup the benefits months down the road, after I've long forgotten the automation exists ("you only notice electricity when it's missing"). I've automated iTunes album listings, video file annotations with AppleScript and Perl, have tried numerous todo and schedule outlines, and generally enjoy having my computer be far more "robot" than those of 90% of the populace.
This is a tale of how Panther broke my automation and how, with a few days of disjointed searching, experimentation, and dreaming, I didn't fix the problem. Instead, we simply follow one man's obsession as he makes steadily more-desperate attempts to scratch a bothersome itch.
Slight Changes Have Big Repercussions
Let me tell you of a normal weekday in regards to my email processing. Every morning at 7:06 AM, my alarm clock goes off. As I stumble out of bed and plunk down at my desk, Eudora has already downloaded my morning email, having been opened via a cron entry at 7:00 AM. At 6:08 PM, when I, on average, get home from work, my email is again waiting for me, having been automated at 6:02.
On weekends, when I'm rarely online, I "fly-by check" my email on a regular basis. Since my computer room is on the way to the bathroom, I've configured Eudora to launch whenever I press the F3 key. If I haven't checked my email in a while, I'll F3 without stopping, and by the time I've finished my business, new email is ready for a quick scanning.
I have dozens of tasks similarly automated; backups, list creation, email newsletters, RSS aggregation, web site maintenance, system reports, you name it. If it can be automated, it either already is, or I've been laying the groundwork to do so. Easily, a dozen or more items were added to my daily and weekly regiment during my work on Spidering Hacks.
Nearly half of my automation requires an active Internet connection and, as I'm religiously devoted to dial-up, the "Connect automatically when needed" checkbox of the Network System Preference (Figure 1) is a prerequisite. Under Jaguar, everything worked beautifully. Under Panther, things broke down nearly immediately, and without clear explanation.

Figure 1: "Connect automatically when needed" is checked
Regardless of whether I used an internal or external modem, with or without Airport enabled, things were always the same: "Connect automatically" just didn't. Oh sure, it'd put up a good fight: restart the machine and it'd connect at the first opportunity, but no further luck until the next reboot. It got to the point where I automated an Internet-connecting AppleScript before launching Eudora or related cron items:
tell application "Internet Connect"
set configName to "name of your connecting device"
set currentStatus to status of configuration configName
connect configuration configName
end tell
This quickly proved unwieldy: occasionally, something ... "odd" would happen, and the Finder menu bar would disappear when the script launched Internet Connect. The bar would come back nearly immediately, but not perfectly: my previously connected Airport network icon would show as disconnected, and nothing besides a reboot would return it to proper operation. Likewise, this solution would only satisfy anticipation: it could never be triggered when my SETI@home was ready to get a new work unit.
At this point, my problem became the Single. Greatest. Issue. Ever. It was so disruptive of the way I worked, and of the way I expected my computer to work, that everything else became dull noise -- this needed to be fixed immediately and without respite. I began looking around for other people reporting the same problem.
|
Related Reading
Running Mac OS X Panther |
I eventually ended up at Apple's 10.3 discussion boards where the explanation screamed out from the FAQ. In it, the death knoll: when you cancel a PPP connection attempt when the modem is dialing, or you manually disconnect after an automatic connection, the "connect automatically" feature will be disabled until you "restart the computer, put it to sleep and wake it, or change your network location."
I can remember, quite clearly, being shocked and thinking how this made absolutely no sense. If the user doesn't want his or her computer to dial automatically, unclick the blasted "Connect Automatically" box! When I want my computer to connect automatically to perform a task, I ... want it ... to ... connect ... automatically to perform said task! Just because I disconnect when said task is finished doesn't invalidate my previous request: CONNECT AUTOMATICALLY WHEN NEEDED!
Help! Apple broke my robot! This sucks.
Accepting "Pfffttt!" For An Answer
I couldn't accept this at face value: I resolved to make Panther work like Jaguar, and to do it without a lot of effort or annoying disruptions to my regular workflow. My answer, it seemed, lay with the possible solutions in the support document: "restart the computer, put it to sleep and wake it, or change your network location."
My first approach was to run something every hour, which fixed the problem somehow. This immediately ruled out restarting the computer or putting it to sleep and waking it: if I was working on the machine at the toll of the cuckoo, I'd be rather rudely interrupted. I could certainly check to see if I was currently connected, but that incorrectly presumes that when I'm working, I'm online. if I was dancing to the open source StepMania, my game would be over.
The only other alternative was to "change your network location," and I descended on this with anxious fury. AppleScript-wise, I was already halfway there, as Panther ships a sample script for doing just that (shown below truncated; the full version is located in /Library/Scripts/UI Element Scripts/Set Network Location.applescript):
tell application "Finder"
activate
end tell
tell application "System Events"
click menu item "Automatic" of menu "Location" of menu item
"Location" of menu "Apple" of menu bar 1 of process "Finder"
end tell
All I'd have to do would be to create a duplicate network location (called "Automatic2"), and then set that location every odd hour and the default location ("Automatic") every even hour. There was one problem (there's always "one problem"): if you're currently connected, changing the network location disconnects you. Sigh. This wasn't ideal, either: some of my weekly backups take more than an hour, and they'll fail if the 'Net disappears from underneath them.
At this point, I returned to the possibility of pre-checking to see if I was already connected: if I'm connected, don't change the network location, if I'm not, have a blast. I didn't follow this path: I was getting steadily disenchanted with the idea of running something every hour when it'd only come in handy two or three times a day. In retrospect, I suspect I'll have to reopen this line of thinking.
I also had a cinder of an idea, quite literally sparked from a dream the night before. Problems consume me, and it's pretty regularly that my subconscious solves them. I've come to rely on my unknown instincts: it's helped me through numerous video-game puzzles, proper approaches to writing about difficult topics, and epiphanies concerning technical or coding issues. Sometimes, I'm smarter than myself.
Getting Darwin Involved
As most of us know, Apple's pretty GUI is built on top of Darwin, a full-fledged Linux-like operating system. My day-to-day development and sysadmin work pretty much assures that I have a Terminal open all the time, along with a bevy of shell aliases that I use regularly. One of them, p, expands to ps aux | more, which shows me a list of all the processes currently running on the machine. I distinctly dreamed pppd in that list, something I probably wouldn't have noticed unless I absolutely needed to.
Sure enough, when I manually connected and checked the process list the next morning, I saw pppd in the list. I didn't know where I was heading, but I called for the manual (man pppd), and was greeted with the spirit guide my dream surely intended:
/etc/ppp/ip-up: A program or script which is executed when the link is available for sending and receiving IP packets (that is, IPCP has come up). It is executed with the parameters: interface-name, tty-device, speed, local-IP-address, remote-IP-address, ipparam.
/etc/ppp/ip-down: A program or script which is executed when the link is no longer available for sending and receiving IP packets. This script can be used for undoing the effects of the /etc/ppp/ip-up script. It is invoked in the same manner and with the same parameters as the ip-up script.
Plainly put, if I could rig up a /etc/ppp/ip-down script that changed the network location whenever I disconnected my dial-up connection, the "connect automatically when needed" feature would be "reset," ready to work correctly the next time it was needed. The only thing required would be to modify the previous Apple-supplied AppleScript to first find out which network location was currently enabled, and then choose the other.
I never got that far. See, there was one problem.
In testing, every time I changed the network location, it would not only disconnect the current connection (if any), but would immediately redial into the new network location as a side effect. I think this is related to Apple's lookupd daemon and the resetting of hostnames, but I didn't look into it 100%. This happens whether I use the above AppleScript, or a rather handy command-line network switcher called scselect. (No manual is available for it, but run it once to see a list of configured networks, and pass the network you'd like to enable as it's only argument.)
Getting more and more frustrated, I decided that if I uncheck the "Connect Automatically" checkbox before I change the network location, and then turn it back on after the change occurred, things would be perfectly ducky. I ended up with the following AppleScript, which uses the new GUI Scripting plug-in (enabled by default in Panther). If you've never used it before, I heartily recommend the PreFab UI Browser from PreFab Software, Inc.
tell application "System Preferences"
set current pane to pane "com.apple.preference.network"
end tell
tell application "System Events"
tell application process "System Preferences"
click button "Configure..." of group 1 of window "Network"
click button "PPP Options..." of group 1 of tab group 1 ¬
of group 1 of window "Network"
click checkbox "Connect automatically when needed" of ¬
sheet 1 of window "Network"
click button "Ok" of sheet 1 of window "Network"
click button "Apply Now" of window "Network"
end tell
end tell
quit application "System Preferences"
Don't bother using the above as anything but an example: it doesn't solve the problem. Once the AppleScript "clicks" the "Apply Now" button of the Network preference pane, an "ohmygod, the network has changed!" message gets sent around the OS, lookupd is reinitialized, and a dial-up connection immediately initiates. Exactly the same as changing a network location, and certainly not what I was looking for.
At this point, any sane person would have given up.
The Brute-Forcing and the Hulking Sulk
At this point, we've straddled the line of our initial problem: the connection doesn't connect when we want it to, and our solutions have caused the connection to connect when we don't. We've either got nothing whatsoever or far too much. Not good, not good. I was steadily running out of good ideas, and my last attempt failed due to, I suspect, ignorance and pathetic inspiration.
The goal, ultimately, was to work around the workaround. I had numerous solutions that would work, all based around changing the network location. if only I could get the immediate redialing to stop, I'd be golden grahams. I knew that every time a network change occurred, a dependable set of lines would be spit into /var/log/system.log. If I could configure pppd to dial only when those lines weren't nearby (say, within the last ten log entries), I'd be set. I began writing a replacement pppd which would call the real pppd when necessary.
As the article title suggests, I failed miserably. Reading the logfile was easy and determining what to do next was simplistic, but I couldn't properly determine how to pass the request to the real pppd daemon for further operation.
Conclusion Seclusion
As with most seemingly perplexing personal problems, they'll be one of three typical reader responses: "Uh, wow, you overcomplicated that. Press Alt-WORK, dude" or "AHAHAHA. DIAL-UP?! I HOLD MY SIDES IN CONTEMPT!" or even "Welp, that's the right behavior. It was broken in Jaguar." After talking with some folks at Apple (in response to my bug report stressing doomsday with failed critical software and virus definition updates, etc.), it appears that the current approach is in response to an overly aggressive connection bug in Jaguar, one which I've never personally experienced.
No pain is greater than our own, indeed.
Kevin Hemenway is the coauthor of Mac OS X Hacks, author of Spidering Hacks, and the alter ego of the pervasively strange Morbus Iff, creator of disobey.com, which bills itself as "content for the discontented."
Return to the Mac DevCenter
You must be logged in to the O'Reilly Network to post a talkback.
Showing messages 1 through 45 of 45.
-
how about...
2004-02-06 18:01:19 keath [Reply | View]
-
how about...
2004-02-06 18:09:41 Kevin Hemenway |
[Reply | View]
Already tried that. See the first script, and the resulting breakage that occurred when I cron'd it.
-
??
2004-02-06 20:17:41 fofer [Reply | View]
Seriously though, how can you be "religiously devoted to dial-up?"
I'm not even referring to the speed benefits. I'm talking about it's "always on" nature. I truly believe Apple has designed OS X (and all of it's software. quite frankly) with broadband in mind.
All these hacks cobbled together with rubber band, tape and bubble gum will eventually fail when one small variable fails. Fix the larger problem (ie: get broadband) and move on. -
??
2004-02-06 21:07:06 Kevin Hemenway |
[Reply | View]
Completely irrelevant comment to the topic at hand. I could write three times as much text on why I prefer dialup over broadband (or generically, faster speeds). Regardless, speed ignorance or lack of experience isn't an issue: I'm on a T1 nine hours out of every weekday, and I still prefer dialup. -
??
2004-02-07 09:08:55 chrismear [Reply | View]
No, seriously, what are your reasons for preferring dial-up? I can think of only one: it makes using the internet for procrastination much harder. Why does a self-professed power-user not desire faster internet? -
??
2004-02-07 11:03:23 Kevin Hemenway |
[Reply | View]
I'll consider writing a blog entry on it, but as mentioned it *will* be long, and it doesn't really relate to any of the article-based topics that O'Reilly publishes. I've no time now to expound on the opinion. -
??
2004-02-07 15:06:33 fofer [Reply | View]
Maybe if you had broadband, you'd have more time to expound? -
??
2004-02-07 16:07:33 Kevin Hemenway |
[Reply | View]
Actually, no, it'd give me less. I'm a rabid collector: books, archived websites, pdfs, music, mp3s, mpegs, if it's a file format, I collect it. Broadband would give me access to those faster, which means I'd get less work done, not more. -
??
2004-02-07 20:32:47 seraglio [Reply | View]
With your rabid automation skills your robot computer could be collecting for you at exponential rates via broadband even when you're not around, right? You could be saving immense amounts of time, which as I am told is also money.
Your religious devotion to dialup is, therefore, heresy. Dialup is dead. -
??
2004-02-07 20:44:02 Kevin Hemenway |
[Reply | View]
Your suggestion is idiotic. Collecting is not about amassing files for the sake of amassing files. Collecting is about enjoying what you're collecting. Having more of what I like means less time to enjoy each individual piece. I'm already behind roughly 200 albums, all leeched through dialup (my listened-to collection is available at http://disobey.com/d/lists/albums, where I don't consider an album "listened to" unless it's gone through the player twice, from start to finish, sans interruption). Likewise, only 20% of my mpeg collection has been watched, cataloged, and enjoyed (that 20% is at http://disobey.com/d/lists/video_files). Increasing the amount I download merely decreases the amount I enjoy. The current line of reasoning is that I'm losing "time" because dialup is "slow"; it shows an incredible lack of understanding about what I do with my machine, how I do it, and what type of time I wish I had more of. As predicted, you hold your sides in contempt, yet I merely chuckle at your ignorance. -
??
2004-02-08 08:06:47 fofer [Reply | View]
You're not the only one chuckling, morbus.
The question is asked, how anyone can be "religiously devoted" to an inferior technology, with the hopes of gleaning insight that may apply to the audience. (After all, your article was intended for mass consumption, no?) And yet your justification and defense rests solely on your own personality handicap -- an obsessive compulsiveness to which most of us cannot relate.
There's no reason for the replies your audience to be insulting and curt.
You begin your article by confessing, "When something hits me, I'll drop everything I'm behind deadline on and spend 20 hours automating a task that takes five manual minutes; I know I'll eventually recoup the benefits months down the road." You realize that this payoff (in time saved) won't kick in for about eight months, right? Yet in the meantime, you've neglected your current deadlines and refused to explore any alternative solutions.
The more I see your overly defensive responses, the more I realize this article was not intended for an audience's feedback, but rather as yet another way for you to "catalog" your personal experiences. And that your quest for life automation is less about efficiency, than it is about personal empowerment over insecurity.
Your workflow would be much more efficient if you focused on the one piece of software that was *really* slowing you down... your mind. -
??
2004-02-08 08:22:18 Kevin Hemenway |
[Reply | View]
The question asked has little to do with the article at hand. We've all been on zillions of tech support lists, and a major problem that anyone question-asker will face is the answerer's desire to reinvent the environment from which the question was raised. This whole thread's line of reasoning is that my problem is NOT autoconnecting, but instead, dialup in general. If I wanted to entertain that line of reasoning, 90% of the article needn't have been written: why would I have bothered with the Applescripts, "scselect", pppd /etc/ scripts, etc., etc., etc.
Again, your assumptionary state is showing, and I really do try to not fault you for it, since indeed, you can't "relate". Regardless, I've "explored alternative solutions" to dialup previously, and I've not been satisfied with any of them, either in regard to the evils of usage policies, the repetitive downtime of the service, or the ever increasing price hikes under the guise of value-added service. Irregardless for how you feel concerning broadband or dialup, the fact remains that *I* am satisified with dialup. Challenging the basic assertion of an article ("oh, well, his problem is dialup, not autoconnects") is not a solution, it's merely a 10 message thread that has gotten out of hand. -
??
2004-02-14 08:20:58 mozart11 [Reply | View]
In on of your replies here you state " Regardless, speed ignorance or lack of experience isn't an issue: I'm on a T1 nine hours out of every weekday, and I still prefer dialup".
Then in this reply you state " Regardless, I've "explored alternative solutions" to dialup previously, and I've not been satisfied with any of them, either in regard to the evils of usage policies, the repetitive downtime of the service, or the ever increasing price hikes under the guise of value-added service. Irregardless for how you feel concerning broadband or dialup, the fact remains that *I* am satisified with dialup".
My question - why do you use T1 nine hours a day? Why don't you switch where you use the T1 to dial-up if broadband is so unsatisfying to you? And by the way this whole thread I imagine gives you great joy. Because it sure is a waste of my time.
I think I'll skip including MacDevCenter as part of my daily reading. It used to be informative, so I bought the two O'Reilly books "Mac OS X Unwired" and "Mac OS X Panther". I'll stick to the other Mac sites for solutions. Leave the horse & buggy crowd here.
Bye -
??
2004-02-08 10:57:16 seraglio [Reply | View]
I am truly sorry to hear that you do not have enough time to enjoy the files which took you over 500% longer to download compared to a broadband connection. Also, the suggestion to automate a collection was, obviously, said in jest.
In all seriousness, though, I am quite disappointed with the tone and direction of your article. O'Reilly does such an incredible job of introducing people to new and emerging subjects in an intelligent manner. It is then a surprise to find your prose on troubles with and childish defense of a waning technology. However, it now looks as though my piece on "How I Just Can't Seem to Get My Apple ][ Connected to the ARPANET Anymore" has a much better chance of being published than ever before... -
??
2004-02-09 19:24:21 fofer [Reply | View]
"I can think of only one: it makes using the internet for procrastination much harder."
Turns out that's exactly the reason. The author is afraid that broadband would make it too easy for him to download a lot of content (ie: procrastinate.)
In other news, I was afraid I'd overeat, so I sewed my mouth shut. Problem solved! -
religiously <b>obliged</b> to dial-up
2004-02-11 05:24:31 pitagora [Reply | View]
I live in a little village in Lombardia (Italia)and I have no choice: it's either a 56 k modem connection or a 128 k ISDN dialup connection for € 90 per month. Anyway I bought a dual G4 and use it as a mail proxy server (40 different accounts). Communigate pro and RAV antivirus connect every 15 minutes to the internet, while SETI@home can't send the packet once the analysis is terminated to get a new work unit. I'm not able to dig with unix underpinnings, so I would like Apple to fix the problem
-
Look elsewhere
2004-02-06 22:57:18 tlaurenzo [Reply | View]
From your descriptions of your "routine", I have to say that I cannot understand it. Your descriptions of dial-up also confound me (I'm on a T3 9 hours a day and can't stand dial-up at home). However, to each his own, I guess. It is discouraging, though, that some minor feature changes in an otherwise very much improved OS were met with such a flame (with top billing on oreillynet) simply because they broke your extremely fragile routine.
Ok. So there's my flame back. I really think you are looking in the wrong place here. The OSX dial-up infrastructure is really just our friend pppd and related programs. From what I remember, Apple patched pppd to accept an extra parameter which allows a user-defined plugin to be loaded for event notification. The Apple connect scripts pass in a system-defined plugin that makes sure the UI is always in sync (ie. displaying in the menu bar, keeping network preferences "live", etc). You can inspect these options by reading the pppd man page closely or passing the correct options to "ps" to get a look at what the Apple connect scripts are doing.
I suggest that you look past the Apple GUI scripting you are doing and seek a more "Unixy" solution. I solved this exact same problem on Linux 4 years ago using a combination of pppd, diald and chat. It was a bit of a pain back then, but I know that things are somewhat easier now, especially if you can forgo the "automatic connection" and just force a connection manually, this is practically just a couple lines of script. Still I know that tautomatic connection is possible from a pure unix tools aproach (in fact I wouldn't be surprised if this is exactly how Apple implements it under the covers). -
Look elsewhere
2004-02-07 07:56:48 Kevin Hemenway |
[Reply | View]
What don't you understand, or consider fragile, about the "routine"? That's a very small part of the automation I use, which all worked perfectly under Jaguar. Nor was it a flame toward Apple: I reported it as a bug in RADAR before writing the article, waited for their response before finishing the article ("it's been reported before, we're still looking into it"), and talked to a bunch of other people concerning possible fixes before revising said article. It's "top-billing" solely because it's the latest published article. Monday, they'll be a new "top-billing".
Concerning pppd, I didn't know about the plugin architecture (save for the /etc/pppd directory). You think that the "if the user has manually disconnected, no longer dial automatically" is a simple turn-off-able flag in a ppd script? My impression was that the decision was made somewhere in a GUI library, which just stopped pppd from being called ever again (which can be confirmed by disconnected manually, then attempting to have an autoconnect occur, and NOT seeing pppd's fleeting absence in the logs or the ps).
As for dialing purely with the pppd daemon, I've tried that. Capturing the output of the pppd with ps, as well as some CCLEngine script didn't prove very helpful: running the exact command shown in the ps didn't work, nor did passing STDIN or command line flags to the "real" pppd from my "fake" version. As the final paragraphs attest to, it's my ignorance of pppd that heightened my failure.
-
Hmm.
2004-02-07 05:35:13 oreillyora [Reply | View]
I was about to suggest using the built-in auto-dial and auto-hangup feature of Eudora, but I see Apple has removed access to it in OS X. My knee-jerk reaction is that this is probably a good thing (tm), but that's based on having provided tech support for OS9 users, and so often watching the Location Manager get thrown into disarray.
I haven't bought panther yet and this "feature" of automatically softening the control a user has on their computer bodes ill for the future if it becomes a design philosophy. The horror that was Windows ME is the end product, IMHO, of catering to the newbie by hiding anything complicated and making the system "helpful" to the user a la Mr. Clippy. A better design for the behavior described above would be to ask the user, if they have clicked on "cancel" while dialing up, whether they want to turn off their auto-dial feature and leave it at that.
I'm worried about the future of networking in OSX, since I've had to put up with a similar problem in Jaguar where lookupd on my powerbook decides unpredictably on waking-from-sleep to ignore the resolv.conf and stop listening to it's own named (BIND) daemon. Since I use a lot of CNAME aliases to the localhost to develop web sites on it, this means that apache will fail, on restart, to resolve the test servers it's hosting, and the local "search" domains are ignored. I find I have to change location, change it back, and restart apache if I'm zinged by this "feature".
There's probably a better way of fiddling with the lookupd configuration to prevent this from happening, but I've never had the luxury of time to look into it. My hope is that Apple will start adding more rigid and transparent control over network configuration.
-
disable pppd when not needed?
2004-02-07 05:42:34 hayne [Reply | View]
I couldn't properly determine how to pass the request to the real pppd daemon for further operation
Why not have your "fake" pppd start and stop the real pppd as needed? If it isn't running, it won't dial out! -
disable pppd when not needed?
2004-02-07 07:59:23 Kevin Hemenway |
[Reply | View]
For the fake pppd to work correctly, it would have had to pass the same environment, STDIN, and command line flags, to the real pppd. Once that was nailed down, the program could be solved a number of different ways. Due to ignorance, however, I was never able to have the fake pppd correctly pass things to the real pppd.
-
use idle disconnect?
2004-02-07 08:48:05 grmeyer [Reply | View]
Did you try changing your idle-time setting, via a script, before running your automation? Apple's answer seems to say that it is manual disconnects that reset the dial-on-demand setting, so instead of forcibly disconnecting, let it die by itself after all your processing is finished. -
use idle disconnect?
2004-02-07 09:02:40 Kevin Hemenway |
[Reply | View]
I considered that and mentioned it in the Apple bug report, but not here. Basically, I have a static IP address and do a lot of web development: I'm constantly getting hit by worms, Code Red, port scans, blah blah blah, all of which defeat the idle timeout.
-
Just a thought...
2004-02-07 15:18:07 kool [Reply | View]
I'd think that the boolean for connect automatically would be stored in a file somewhere. How about changing the access of it to read-only so the system cannot write back the false for autoconnect? Just a wild guess...
-
Have you tried an Airport?
2004-02-08 08:38:40 rhwood [Reply | View]
Apple's Airport does dial-up, and starting/disconnecting its dial-up connection may not give your computer the fits. -
Have you tried an Airport?
2004-02-09 19:57:30 Kevin Hemenway |
[Reply | View]
Now that's interesting. I know an Airport Base Station contains dialup ports and a built-in modem, but I've never actually tried one to see how it handles. My Airport needs are actually very simple, so I never needed a base station for file or 'net sharing. My current Airport setup is described here: http://www.disobey.com/dnn/2003/10/index.shtml#001560. Those who labeled me a Luddite will even have more fodder now ;)
-
I cannot believe this is a featured article
2004-02-08 10:36:43 inetwsnet [Reply | View]
Honestly, a whole article that is caused by the users refusal to get a broadband connection. Reading this article wasted almost as much time as the last dial-up connection that I was forced to make.
-
Irrelevance
2004-02-08 21:25:42 mclaincausey [Reply | View]
I have to agree that I found this article so particularly narrow and irrelevant that I couldn't read the whole thing. All that knowledge and energy, wasted on such triviality, it's baffling and almost depressing. But the article is an insight into the workings of an irregular computing mind. For example:
When something hits me, I'll drop everything I'm behind deadline on and spend 20 hours automating a task that takes five manual minutes; I know I'll eventually recoup the benefits months down the road, after I've long forgotten the automation exists ("you only notice electricity when it's missing").
First of all, that is imo recklessly irresponsible. I'm not here to judge or instruct, but that to me shows by your own admission that your priorities are skewed and your expectations unrealisticly high. Usually, you waste as much time as it takes to make reality match these expectations, and ultimately succeed. Obviously, so far in this instance, that is not the case.
Spending 20 hours remedying a "problem," for instance PPP/email automation, could take much more than a "few months" to recoup (though mathematically just over one month for a 5 minute task). You seem to act as though opportunity is timeless; effort spent back to back cannot be fairly measured against effort spent distributed over time, particularly when that time caused you to postpone work that was already past deadline. In other words, one has to measure QUALITY, and not just QUANTITY, of time spent. To do anything less is myopic and is to take a one-dimensional view on life.
Anyway, the time spent dialing up, logging in, and downloading your email is probably a matter of minutes or even seconds. And if you spent 20 hours working on the issue and no telling how many more documenting it here, that's at least 72,000 seconds or 1200 minutes. And since you never found a solution, that's 1200 minutes down the drain, lost forever.
I've automated iTunes album listings, video file annotations with AppleScript and Perl, have tried numerous todo and schedule outlines, and generally enjoy having my computer be far more "robot" than those of 90% of the populace.
Some of those sound like productive exercises, and automation is great, but this goes beyond enhancement and into the realm of obsession.
This is a tale of how Panther broke my automation and how, with a few days of disjointed searching, experimentation, and dreaming, I didn't fix the problem.
I wouldn't say Panther "broke" your automation, I'd say Jaguar provided a feature that made your peculiar, very particular, and almost certainly unique automation possible.
Instead, we simply follow one man's obsession as he makes steadily more-desperate attempts to scratch a bothersome itch.
Hey, you said it. For your sake, I hope your next "itch" is something that could effect a solution and an article that more of us would find useful.
As to the mysterious enthusiasm for dial-up, when you say something that outrageous in the company of the type of people who are likely to read such an article, I think you owe it to your audience to justify this odd take. If it's for security reasons, then you could start and stop your internet connection with crontab entries no matter which interface you're using. The time taken to download your emails, collect your files, shuffle files from the office to the home, particularly if they are large and content-rich, would decrease by an order of magnitude, and thereby save you thousands of man- or at least computer-hours. No longer would you have to use a CD burner to transfer files, and you could keep your OS updated much more regularly and quickly and painlessly. I'm sorry, but for these and MANY other reasons, you sound dememented with this Luddite fear of bandwidth. If you're so obsessed with automation and saving time, bandwidth should be your best friend.
Mac -
Irrelevance
2004-02-09 19:19:11 fofer [Reply | View]
"Spending 20 hours remedying a 'problem,' for instance PPP/email automation, could take much more than a 'few months' to recoup (though mathematically just over one month for a 5 minute task)."
Actually, by my math, a task that takes 5 minutes a day, every day, would take about 8 months until time spent totaled 20 hours. (I really don't think he's talking about a repetitive task that reoccurs every 5 minutes.)
So basically, obsessing over a "solution" to this problem, at the expense of other deadlines, wouldn't start to "pay off" until the 8th month. Even if this task occurred twice a day as the writer describes, it would take 4 months to pay off.
Is it worth it? -
Relavance in irrelevance
2004-02-10 08:51:06 rufwork [Reply | View]
I believe the quote was the author's backhanded attempt to admit to a neurosis, and one that I share (though luckily not quite so encompassingly; it usually only affects me when I'm coding, not with iTunes and other daily tasks).
Though I do feel OraNet is losing a little in article quality recently, I did find this one interesting. Why does Apple break backwards compatibility so often (it's done it a few times to me developing Java)? What are the implications of a "user-friendly" *NIX? Are you really forced, as a developer, to exclude 2% of your customer base to satisfy the other 98% out of the box?
And are those 20 hours of neurosis-satisfying remedy-making really helping you in the long run every time? Isn't it time to get help? ;^)
More seriously, the easiest way to get what it sounds like he needs is to reinstall 10.2. What do you need on 10.3 that forces an upgrade, anyhow? Other than Java 1.4.2, I can't think of any dealbreaker about 10.3 from my limited box. Dual-boot sounds like the answer. Good luck with the neurosis. -
Relavance in irrelevance
2004-02-15 05:26:45 phummers [Reply | View]
Here's the dual-boot scenario that I would recommend: second system--NetBSD!
That giant sucking sound is OSX compared with any (other?) BSD--NetBSD is free, it'll run on your Mac, and like a real Un*x, is _so_much_more flexible
OSX is worth keeping around, IMO, for iTunes
-
pppd demand option
2004-02-09 09:51:05 heschong [Reply | View]
Have you tried manually setting pppd options such as demand and idle? Perhaps jaguar will let you bypass its internal network config settings... man pppd or possibly investigate /etc/ppp/options
-
A marvelous failure
2004-02-09 10:02:49 willymc [Reply | View]
Fantastic. Of course you should be able to make your machine do what YOU want it to do. And if it doesn't do it out of the box, it should at least come ready for it to be bent into doing your will. It must be great to be able to get paid to take these mind diversions. You are the man. Keep up the fine work.
-
"End Hanging Disconnect" application
2004-02-09 19:09:41 fofer [Reply | View]
Have you tried "End Hanging Disconnect"?
http://www.versiontracker.com/dyn/moreinfo/macosx/21941
"End Hanging Disconnect is a Mac OS X Applescript application that will force-quit the infamous "endless disconnect" that can sometimes occur on dialup Internet connections. Simply run the application and enter your (admin) password. You may then reconnect to the Internet without having to restart the computer.
This <new> version repeats the killall command 5 times (with 5 second delay in between tries), since the first try frequently does not end the pppd processes. If the command is successful on the 1st, 2nd, 3rd or 4th try, a subsequent dialog will indicate no matching processes were found. Just dismiss the dialog as needed; no harm done." -
"End Hanging Disconnect" application
2004-02-09 19:52:36 Kevin Hemenway |
[Reply | View]
This actually addresses a different bug which I've yet to encounter. Rarely, when you disconnect your dialup connection from the 'Net, the modem/drivers will remain in a perpetual "disconnecting..." state. Powercycling the modem doesn't help, very rarely does killing the actual process help, and typically, the solution is to reboot the computer to reload the drivers.
-
Ode to Dialup...
2004-02-11 07:07:42 alienbenefactor [Reply | View]
Ahh...
I remember dialup.
The sound of rapidly dialed sequences of phone numbers...
The roars, screes, hiss and gargle of the handshake...
The three belltones signaling online connection.
Warming my feet over the power supply
Coffee in hand.
Oh for the good auld days!
Gopher, Archie, all my old friends
Where are you now?
Why were you abandoned?
Was the web's siren song
It's flashing "you've won!" advertisments
Really worth the loss of your
Simple effectiveness?
Now in dark days
Do I flush
Fiftymillion spamsworth
Of offers from Kenya
Of hairy attachments (Full of teeth)
And protruding enlargment offerings...
Gone is simplicity!
Gone! Gone! and Going!
I dream of a time
When Fidonet was king
And the BBS system
Was still the big thing.
The spider of commerce
Had not woven the Web
And mountains of spam
On which we are fed
Did not exist
Oh if only
In that far away time
We had the guts to resist!
That's the end of this rhyme.
-
Stepmania
2004-02-14 07:48:59 andyinindy [Reply | View]
To heck with all of this talk about scripts and automation. What this article is really successful in is introducing Stepmania to us Mac OSX users!
One question; which Playstation to USB converter do you use? The recommended "PSJoy" model seems to only be availiable in Europe...
-
Don't let-
2004-02-15 13:20:59 theross [Reply | View]
Illegitimi Non Carborundum, Morbus
Someone already set it, but I think the best solution may be a first-generation Airport base station.
-
Backwards?
2004-02-17 20:04:47 jwilliams [Reply | View]
If changing the network location automatically starts a connection, the why not use that connection for your automated tasks?
In other words, try changing the location before the task runs to establish a connection instead of doing it to reset the "connect automatically" feature after the task finishes.
-
When in Rome, eat like Romans do ...
2004-08-11 05:08:55 ceplma [Reply | View]
I have never used Mac for anything much seriously (I cannot stand a computer with one-eyed mouse :-), but as an old Linux user I cannot imagine, why you just don't have something like this:
#!/bin/sh
if (ping -s www.google.com); then
echo "Online"
WEREONLINE=1
else
/usr/sbin/pppd myISP # requires configured
# /etc/pppd/peers and chatscripts -- see
# chat(8) for more.
WEREONLINE=0
fi
eudora --fetch-mails # or how to do it?
if ($WEREONLINE); then
killall pppd
fi
Moreover, decent distributions of Linux provide some more advancend scripts like this called usually /usr/bin/po{ff,n}.
Matej
-
Ode to Dialup...
2005-07-07 04:44:12 PHP_lovers [Reply | View]
Ahh...
I remember dialup.
The sound of rapidly dialed sequences of phone numbers...
The roars, screes, hiss and gargle of the handshake...
The three belltones signaling online connection.
Warming my feet over the power supply
Coffee in hand.
Oh for the good auld days!
Gopher, Archie, all my old friends
Where are you now?
Why were you abandoned?
Was the web's siren song
It's flashing "you've won!" advertisments
Really worth the loss of your
Simple effectiveness?
Now in dark days
Do I flush
Fiftymillion spamsworth
Of offers from Kenya
Of hairy attachmentsn(Full of teeth)
And protruding enlargment offerings...
Gone is simplicity!
Gone! Gone! and Going!
I dream of a time
When Fidonet was king
And the BBS system
Was still the big thing.
The spider of commerce
Had not woven the Web
And mountains of spam
On which we are fed
Did not exist
Oh if only
In that far away time
We had the guts to resist!
That's the end of this rhyme.






My parents have dial-up also, and I was really disappointed with how 10.1 handled automatic connection. That was a feature they were used to from OS 9, but one that no longer worked after I upgraded their machine. They must have been bitten by the bug you described, because the machine would hang up in an endless loop I think when trying to connect that way. But they adapted and got used to the manual connection method.
You are obviously very knowledgeable about scripting your computer; wouldn't it be possible to approach the problem by scripting the connection rather than the disconnect?
I'm thinking of something like cron launching an AppleScript, which makes the connection with Internet Connect, then launches your Mail application. Is it possible?