Atomic I/O letters column #141

Originally published 2012, in PC & Tech Authority
(in which Atomic magazine is now a section)
Reprinted here May 7, 2013
Last modified 16-Jan-2015.
 

Wi-Fi-Woe

A while ago you had a letter from someone who couldn't connect more than a few devices to a Wi-Fi router because the router had maximum users set to some very small number.

I have a similar problem, but it's not the same. When I bring my laptop home from work and connect it to my wireless access-point/DSL box/router/etc [model provided, but it turned out to be irrelevant], it can't see the Internet, even if I connect it to the router with an Ethernet cable.

My iPad sees the Internet fine, even if I take it away for days before bringing it back. But unless I haphazardly power-cycle everything, taking my laptop away for eight hours is apparently too much.

Heeeeeelllllp meeeeee!

Leticia

Answer:
It took a little fossicking to figure this one out, but it was all the fault of iTunes.

Or, more specifically, of Apple's "Bonjour" service, which installed along with iTunes on Leticia's laptop. Bonjour provides "zero configuration networking" features; when working properly, it allows a device that's new to a network to see all the stuff on that network, including iPods and iPads and such, with a minimum of fuss.

Unfortunately, though, Bonjour gives devices using it a default TCP/IP gateway of 0.0.0.0, which is guaranteed to not work. The Bonjour-running machine expects that if the network actually has Internet connectivity, a DHCP (Dynamic Host Configuration Protocol) server somewhere on the network will provide a working gateway address. For your average home network, the DHCP server is the broadband-box/router/etc.

When you bring a Windows machine to the network when it hasn't been connected for a while, though, it is likely to get a new DHCP "lease", maybe with a different IP address from the last lease, and all other data the same. Unfortunately, there's some kind of overlap/race-condition problem here, where Bonjour is already running and the computer connects to the network but hasn't yet received new DHCP info. It then ends up mis-connected to some extent, possibly working fine on the local network but convinced its Internet traffic has to go via the nonexistent, never-gonna-work 0.0.0.0.

Bonjour is not actually necessary on most computers that run it - iTunes doesn't really need it. So just setting the Bonjour service it to manual-startup in Computer Management -> Services and then rebooting the computer and the access point should, and in this case did, solve the problem.

 

Ree! Ree! Ree! Ree!

My kid decided it was a great idea to stab my computer speakers with a texta. Repeatedly, "Psycho" style. The, I believe they're called "drivers", are now a lost cause, but on the plus side I've now seen the inside of an actual voice coil, unwound by little hands attached to a little boy who is now forbidden TV and lollies until he's old enough to vote.

I think the electronics of the speakers are still OK, though. They were pretty nice for no-name speakers - 4-inch woofer, dome tweeter, good enough for music listening not just games. Can the drivers be replaced, or should I just get new speakers?

S.

Answer:
Quick and dirty solution: Read basic specs off back of dead drivers. All you really care about is the nominal impedance, which will probably be four or eight ohms. Go to electronics shop with one or both dead speakers, get new tweeters and woofers of the same impedance and a size that fits, wire 'em up (the right way round), screw 'em in, and you're done.

If you replace speaker drivers with other random drivers that just happen to fit the holes, though, the speakers will probably end up bass-, or treble- or midrange-heavy, or light. You probably won't actually hurt anything (unless your kid also wrecked the crossover circuitry, which prevents bass going to the tweeter and treble going to the woofer), but it probably won't sound as good.

If you pick drivers whose specification sheets show overlapping frequency ranges and similar efficiency, though, it's possible you'll end up with speakers that sound better than they did when new. This is never going to happen if you replace the drivers in high-quality brand-name speakers, unless the driver specs match really closely. But no-name speakers have cheap drivers, which can often be improved upon.

 

Office subterfuge

My employer snoops on Web access, and my... sub-optimal... boss yells at anyone who's caught reading Reddit or whatever on company time.

I don't see why it should be a problem as long as I do what I'm meant to do well and on time (which I do, and more), but this argument does not fly with my beloved boss.

So I'd like to be able to encrypt my Web browsing. Not really for personal security or to conceal a porn habit or anything, just so the boss's sycophant in the IT department can't dob on me to the boss about it.

[name withheld]

Answer:
There are browser plug-ins that force SSL encryption on any site that supports it (you can kind of do this manually by only going to httpS://... addresses). You could also use a free or paid remote proxy (so all of your traffic goes to the proxy, and from there to whatever you're looking at), or an encrypted proxy system like Tor, or set up a Virtual Private Network (VPN).

All of these options make it impractical or impossible for spies in your office to see what data you're sending and receiving (except for the simplest one, SSL, because not all servers support that). A VPN will even prevent local system administrators from seeing where your encrypted data is coming from and going to.

None of these things are actually very useful for you, though, because the mere fact that suddenly a stream of encrypted data is going to and from your computer will probably be taken by your workplace powers-that-be to mean that you're doing something naughty.

And if they don't know what you're doing or where, it's easy for them to accuse you of being a pirate or a child pornographer or something. The only way for you to clear your name then would be to demonstrate that you were only reading Reddit... which would bring you right back to your original problem.

Local IT staff can also just use Terminal Services or VNC or something to snoop on your screen whenever they feel like it.

What you need, if moving to a better workplace is not an option, is an Internet connection entirely separate from the compromised one. Entirely separate from the office network, even, to prevent the screen-snooping attack.

Failing a directional antenna and an Internet-connected friend in line of sight of your office, you could achieve these goals by tethering a smartphone to a separate laptop, and use that connection for your wicked illicit browsing. As long as you don't need a ton of data - reading forums and other such basic Web stuff uses very little bandwidth - you'll be in business, and still employed.

You could even defeat snitches looking over your shoulder if you used one of those sites that camouflages random sites as business software. MSworddit.com makes Reddit look like a Word document, for instance; MSOutlookit makes it look like Outlook, and codereddit makes it look like source code. Hardlywork.in turns Facebook into a spreadsheet. Spreadtweet does the same for Twitter.

 

Perhaps it's a union rule

I've noticed that many products, like rechargeable flashlights and pumps, will refuse to operate while charging. Other products, like laptops and cellphones, are quite happy to run from the wall socket while also increasing battery charge. Why is this? I see a noticeable price difference, but it's opposite what I'd expect - the cheap products have detection circuits to prevent them from simultaneously charging and operating, while the expensive ones are happy to run in both configurations.

It seems I must be missing something here. So I suppose my question has two parts: why would engineers design in a disabling circuit in the first place? And how does spending more money allow you to fix whatever problem charging causes, without having to disable the device?

David

What could possibly go wrong?
You can run anything from anything, if you're determined enough.

Answer:
The cheap power supplies generally don't have "detection circuits"; the device they're powering is just deliberately set up to disconnect the, say, motor of the cordless drill, whenever the charger's plugged in.

Consider a cheap cordless drill with a low-current wall-wart "overnight" charger. If that charger takes 14 hours to put 1.4 times the amount of energy into the battery as you'll be able to take out again (these are typical numbers for many older rechargeable devices; you always have to put more energy into a battery when you charge it than you'll ever get out of it later), then even if the battery lasted for a whole hour of constant use, the wall-wart would still only be able to deliver a tenth of that constant-use running power.

Since the real constant loaded operating time for a cordless drill is likely to be a lot less than an hour, it's plain that if you made the simplest possible charging circuit with the battery, the charging socket and the (switch-controlled) motor all connected in parallel, then running the drill with the charger plugged in would put far too low a resistance across the charger, load it far too much, and blow it up.

(Chargers of this sort usually have simple current limiting, specifically to prevent people popping fuses in the charger all the time. Plugging the charger into a dead drill and immediately pressing the drill's trigger will in this case, if anything, just make the motor turn very slowly in a sad and grumbling way.)

Modern cordless tools are much more sophisticated than this, but their chargers still can't deliver enough current to actually run the drill. The solution usually chosen to avoid this problem is detachable batteries that you slot into a charging station, or in the case of small rechargeable tools like the little Dremel Stylus which I find myself using surprisingly often, a charging station into which you slot the whole tool.

Mobile phones don't draw a great deal of power or have big batteries, so a simple, cheap plugpack charger can easily charge the phone in a reasonably short period of time, and run it simultaneously. A ten-watt plugpack is a cheap item these days, and more than enough to charge and run a smartphone.

Laptops typically draw less peak power than cordless tools, and also tend to have more powerful AC-adapter power supplies, specifically because laptops have to be able to run from the AC power supply alone with an almost-dead or completely absent battery.

For this reason, there are many laptops that can run from several different power supplies, and many power supplies that can run several different laptops. If you're using a higher-powered laptop with a lower-powered power supply, the power supply may have enough grunt to run the laptop, or charge it while it's asleep or turned off, but not both at once. This situation is a little unusual, but far from unknown.

Laptops also have enough room in their construction budget to include fancy charge-control hardware to handle this sort of setup, built into the batteries and/or the laptop itself. Usually not the power supply, though; modern laptop power supplies are usually pretty "dumb", just delivering a low DC voltage with lots of current capacity, and counting on the laptop to split and regulate it.

This is why $10 eBay car chargers for laptops do actually usually work - they don't set the laptop on fire or anything.

Usually.

 

Other letters columns

I/O #1
I/O #2
I/O #3
I/O #4
I/O #5
I/O #6
I/O #7
I/O #8
I/O #9
I/O #10
I/O #11
I/O #12
I/O #13
I/O #14
I/O #15
I/O #16
I/O #17
I/O #18
I/O #19
I/O #20
I/O #21
I/O #22
I/O #23
I/O #24
I/O #25
I/O #26
I/O #27
I/O #28
I/O #29
I/O #30
I/O #31
I/O #32
I/O #33
I/O #34
I/O #35
I/O #36
I/O #37
I/O #38
I/O #39
I/O #40
I/O #41
I/O #42
I/O #43
I/O #44
I/O #45
I/O #46
I/O #47
I/O #48
I/O #49
I/O #50
I/O #51
I/O #52
I/O #53
I/O #54
I/O #55
I/O #56
I/O #57
I/O #58
I/O #59
I/O #60
I/O #61
I/O #62
I/O #63
I/O #64
I/O #65
I/O #66
I/O #67
I/O #68
I/O #69
I/O #70
I/O #71
I/O #72
I/O #73
I/O #74
I/O #75
I/O #76
I/O #77
I/O #78
I/O #79
I/O #80
I/O #81
I/O #82
I/O #83
I/O #84
I/O #85
I/O #86
I/O #87
I/O #88
I/O #89
I/O #90
I/O #91
I/O #92
I/O #93
I/O #94
I/O #95
I/O #96
I/O #97
I/O #98
I/O #99
I/O #100
I/O #101
I/O #102
I/O #103
I/O #104
I/O #105
I/O #106
I/O #107
I/O #108
I/O #109
I/O #109
I/O #110
I/O #111
I/O #112
I/O #113
I/O #114
I/O #115
I/O #116
I/O #117
I/O #118
I/O #119
I/O #120
I/O #121
I/O #122
I/O #123
I/O #124
I/O #125
I/O #126
I/O #127
I/O #128
I/O #129
I/O #130
I/O #131
I/O #132
I/O #133
I/O #134
I/O #135
I/O #136
I/O #137
I/O #138
I/O #139
I/O #140
I/O #141
I/O #142
I/O #143
I/O #144
I/O #145
I/O #146
I/O #147
I/O #148
I/O #149
I/O #150
I/O #151
I/O #152
I/O #153
I/O #154
I/O #155
I/O #156
I/O #157
I/O #158
I/O #159
I/O #160
I/O #161
I/O #162
I/O #163
I/O #164
Dan's Data letters #1
Dan's Data letters #2
Dan's Data letters #3
Dan's Data letters #4
Dan's Data letters #5
Dan's Data letters #6
Dan's Data letters #7
Dan's Data letters #8
Dan's Data letters #9
Dan's Data letters #10
Dan's Data letters #11
Dan's Data letters #12
Dan's Data letters #13
Dan's Data letters #14
Dan's Data letters #15
Dan's Data letters #16
Dan's Data letters #17
Dan's Data letters #18
Dan's Data letters #19
Dan's Data letters #20
Dan's Data letters #21
Dan's Data letters #22
Dan's Data letters #23
Dan's Data letters #24
Dan's Data letters #25
Dan's Data letters #26
Dan's Data letters #27
Dan's Data letters #28
Dan's Data letters #29
Dan's Data letters #30
Dan's Data letters #31
Dan's Data letters #32
Dan's Data letters #33
Dan's Data letters #34
Dan's Data letters #35
Dan's Data letters #36
Dan's Data letters #37
Dan's Data letters #38
Dan's Data letters #39
Dan's Data letters #40
Dan's Data letters #41
Dan's Data letters #42
Dan's Data letters #43
Dan's Data letters #44
Dan's Data letters #45
Dan's Data letters #46
Dan's Data letters #47
Dan's Data letters #48
Dan's Data letters #49
Dan's Data letters #50
Dan's Data letters #51
Dan's Data letters #52
Dan's Data letters #53
Dan's Data letters #54
Dan's Data letters #55
Dan's Data letters #56
Dan's Data letters #57
Dan's Data letters #58
Dan's Data letters #59
Dan's Data letters #60
Dan's Data letters #61
Dan's Data letters #62
Dan's Data letters #63
Dan's Data letters #64
Dan's Data letters #65
Dan's Data letters #66
Dan's Data letters #67
Dan's Data letters #68
Dan's Data letters #69
Dan's Data letters #70
Dan's Data letters #71
Dan's Data letters #72
Dan's Data letters #73
Dan's Data letters #74
Dan's Data letters #75
Dan's Data letters #76
Dan's Data letters #77
Dan's Data letters #78
Dan's Data letters #79
Dan's Data letters #80
Dan's Data letters #81
Dan's Data letters #82
Dan's Data letters #83
Dan's Data letters #84
Dan's Data letters #85
Dan's Data letters #86
Dan's Data letters #87
Dan's Data letters #88
Dan's Data letters #89
Dan's Data letters #90
Dan's Data letters #91
Dan's Data letters #92
Dan's Data letters #93
Dan's Data letters #94
Dan's Data letters #95
Dan's Data letters #96
Dan's Data letters #97
Dan's Data letters #98
Dan's Data letters #99
Dan's Data letters #100
Dan's Data letters #101
Dan's Data letters #102
Dan's Data letters #103
Dan's Data letters #104
Dan's Data letters #105
Dan's Data letters #106
Dan's Data letters #107
Dan's Data letters #108
Dan's Data letters #109
Dan's Data letters #110
Dan's Data letters #111
Dan's Data letters #112
Dan's Data letters #113
Dan's Data letters #114
Dan's Data letters #115
Dan's Data letters #116
Dan's Data letters #117
Dan's Data letters #118
Dan's Data letters #119
Dan's Data letters #120
Dan's Data letters #121
Dan's Data letters #122
Dan's Data letters #123
Dan's Data letters #124
Dan's Data letters #125
Dan's Data letters #126
Dan's Data letters #127
Dan's Data letters #128
Dan's Data letters #129
Dan's Data letters #130
Dan's Data letters #131
Dan's Data letters #132
Dan's Data letters #133
Dan's Data letters #134
Dan's Data letters #135
Dan's Data letters #136
Dan's Data letters #137
Dan's Data letters #138
Dan's Data letters #139
Dan's Data letters #140
Dan's Data letters #141
Dan's Data letters #142
Dan's Data letters #143
Dan's Data letters #144
Dan's Data letters #145
Dan's Data letters #146
Dan's Data letters #147
Dan's Data letters #148
Dan's Data letters #149
Dan's Data letters #150
Dan's Data letters #151
Dan's Data letters #152
Dan's Data letters #153
Dan's Data letters #154
Dan's Data letters #155
Dan's Data letters #156
Dan's Data letters #157
Dan's Data letters #158
Dan's Data letters #159
Dan's Data letters #160
Dan's Data letters #161
Dan's Data letters #162
Dan's Data letters #163
Dan's Data letters #164
Dan's Data letters #165
Dan's Data letters #166
Dan's Data letters #167
Dan's Data letters #168
Dan's Data letters #169
Dan's Data letters #170
Dan's Data letters #171
Dan's Data letters #172
Dan's Data letters #173
Dan's Data letters #174
Dan's Data letters #175
Dan's Data letters #176
Dan's Data letters #177
Dan's Data letters #178
Dan's Data letters #179
Dan's Data letters #180
Dan's Data letters #181
Dan's Data letters #182
Dan's Data letters #183
Dan's Data letters #184
Dan's Data letters #185
Dan's Data letters #186
Dan's Data letters #187
Dan's Data letters #188
Dan's Data letters #189
Dan's Data letters #190
Dan's Data letters #191
Dan's Data letters #192
Dan's Data letters #193
Dan's Data letters #194
Dan's Data letters #195
Dan's Data letters #196
Dan's Data letters #197
Dan's Data letters #198
Dan's Data letters #199
Dan's Data letters #200
Dan's Data letters #201
Dan's Data letters #202
Dan's Data letters #203
Dan's Data letters #204
Dan's Data letters #205
Dan's Data letters #206
Dan's Data letters #207
Dan's Data letters #208
Dan's Data letters #209
Dan's Data letters #210



Give Dan some money!
(and no-one gets hurt)