Almost 4 years ago, I wrote a short article on dumb websites who have a
maxiumum password length.
Now, in 2012, there are still websites with such stupid policies. One of
the most famous is none other than Microsoft’s Live Account service, which
serves as the authentication hub for all things Microsoft. Basically, your Live
ID, or whatever it’s called, can’t have a password longer than 16 characters.
Back in the first part of this 2-part post we looked in some detail at how MacOS mounts
network shares, and how badly designed this feature is compared to its Windows
We’ll now look at the solution I’m using to fix the problem, which is to mount
network shares in a consistent way for a multi-user machine.
If you asked me a year ago what was the most awesome feature that Windows has and that
MacOS doesn’t, I would have probably scratched my head for a bit, mentally
sorting through all the obscure advanced things you can do with the Windows SDK
and a few lines of code, or all the little things that make organizing files so
much easier than with the horrible Mac Finder.
But if you ask me now, I’ll reply straight away this: mapped network drives.
You would think there’s not much to it, but this has been my biggest problem
as a user when I switched to a Macbook Pro as my main machine. In the first part
of this 2-part post, we’ll look at the problem. Go to part 2 for the
solution I’m using.
I recently got an iPad (more on this later), and with it I got the much hyped smart cover.
I loved the simplicity of it, and how quickly you can take it off and put it back on again… However, I quickly realized that I probably had more dust on the screen while using that thing than if I didn’t have any cover at all. Among the problems I had the infamous “dust lines” – those three lines you get on the screen at exactly the same spot as the cover’s folds.
The problem was pretty obvious: the natural way to fold the cover, and the way Apple advertises it, is as follows:
But this results in the following situation:
The iPad rests on the folded cover as expected, but the outer faces of that triangular stand are the faces that go against the screen when the cover is closed! They would therefore pick up dust and other particle directly from the table and all around, and put them back onto your screen as soon as you walk away… I don’t know where Steve Jobs used to go with his iPad, but my house is not always spotless clean, and neither are any restaurant tables or office desks that I want to put my iPad on.
An easy workaround for this problem is to fold the cover the other way:
This way, the faces that go against the screen are actually inside the triangular stand, where they’re very unlikely to pick up any dust. This way of folding is a lot less intuitive, but once you get the hang of it, you can actually close and open it as fast as before. I haven’t had much dust on my screen ever since I started using this technique.
There’s just one big caveat to this workaround: it doesn’t work with the “stand up” mode.
If you look closely at the picture above, you’ll notice what’s wrong: gravity alone can unfold the cover and make your iPad fall down on the table. In my case, the magnetic strength of the cover is barely enough to counteract the iPad’s weight and make it stand on its own, but the slightest touch can make it crumble down like a house of a couple of very expensive cards. However, I don’t care because I’ve never felt the need to use that position so far.
You may be shocked by what I’m about to say but here it is: PHP is fucked up.
Oh, no. Wait. No you’re not shocked. You already knew it.
Today’s topic: namespaces.