Tag: mac
Perils of Updating Python on Your Mac
by Jitesh Gandhi on Jun.08, 2013, under Software Development
As part of improving my skills, I started to learn Python, a popular scritpting (it can do more) language. So the natural first step was to get it installed. Mac OS X comes with many programming languages installed. My version of OS X Lion came with Python 2.7.1. While Python 3.1.3 was also out at that time, that was not included. They are now up to 3.3.2 and it seemed to make sense to me that I should get the latest. After all, I was learning the language, right? It’s easy enough to install, but the default python (which python) remains 2.7.1. So I set out to make 3.3.2 my new default. I found a tutorial on how to do this here. Learned some good things about OS X under the hood and everything seemed fine, until I went to update Office 2011.
I had started the Office 2011 update and then let it sit there when it asked me to quit Chrome (why does Office need me to quit my browser to update?) but I had some tabs open while working on some other stuff. A couple days later, I went to finish it up and it failed. So I thought maybe it was because I let it sit there in an intermediate state. So I tried again, and again (hey Microsoft, maybe you can save the installer locally instead of downloading it every time after it fails) with no luck. I then started to look into the install log (Command+L) and saw this error:
./preinstall: ImportError: No module named ‘popen2’
popen2 is a Python module. And I realized the problem was Python 3 vs Python 2. So I restored the symbolic links in /usr/bin back to Python 2.7.1 and the update worked fine. I did still leave 3.3.2 with the other versions and added 3.3 links to /usr/bin like the 2.7 ones. This seems like Microsoft’s fault because it’s crazy to think you should never upgrade Python. At some point Apple may (or maybe already has) install 3.x as the default. But reading more, it also seems to be my fault. Making changes to /usr/bin is a bad idea in OS X.
I Am Now a Mac Owner
by Jitesh Gandhi on Sep.06, 2010, under Computer Hardware, Life, Technology
Four or five years after I first considered getting a Mac (I was thinking a desktop tower back then) I now have a MacBook Pro, courtesy of my brother. I took it with me on vacation to the National Parks two weeks ago as kind of a trial by fire thing to learn the nuances vs. Windows with no alternative. This was partly derailed by how busy we were (out the door by 8 AM, back after 8 PM for dinner) and the poor Wi-Fi reception until the last night.
There are a fair amount of nuances that I have had to pick up. The command key is the equivalent of the control key on the PC. Made slightly more confusing is there is also a control key on the Mac. The multi-touch takes getting used to and anything requiring 3 or 4 fingers as gestures are out. I can manage some two finger gestures like scrolling, but pinch/expand requires 2 hands. I see the value in all these gestures, but it would be nice to have the option for some legacy touchpad stuff like scrolling by using the edges of the touch pad. Maybe alternative gestures for pinch/expand like double tapping and dragging from a corner for example.
Some other things that I had to learn was the symbol for alt key. For some reason, Apple makes heavy use of the symbol in the menus (to tell you what the keyboard shortcut for the command is) but then they did not print that symbol on the key itself. The other thing is the lack of the page up/down and home/end keys. Those keys are very handy when using web browsers or navigating documents. So that leaves me with the multitouch for page up/down or fn+arrow keys.
The Mac also has forced me to reconsider syncing stuff. Until now, I had my work PC that I used for dual purposes and a Windows laptop. I’d use remote desktop to gain access to my e-mail or webmail for my domain. Now with two operating systems and my desire to use the Mac for more than an interface to my PC (there is Remote Desktop for Mac), I’m rethinking my strategy. My first step will be to move my e-mail to Google Apps. This also ties into my newly acquired iPod Touch. It has mail, contacts, etc. So when I also get a smart phone in the future, that’ll be another thing to sync. Google Apps is looking like it will make the most sense. One obstacle is I will need to determine how large my mailbox is at this point. I have e-mail going back to 1996. In all honesty, I don’t really think I need to keep 99% of it, but I don’t know that I want to sift through it all either. I should investigate e-mail archival options.
I’ve managed to run iTunes on both machines using the same library. It will also let me sync from either machine. I’m going to start using iPhoto to manage my recent vacation pictures next. I also need to download the iOS SDK so that I can start to play around with making Apps for the iPhone/iPad/iPod Touch families. Also on the list is installing Windows 7 with Boot Camp (and eventually using Parallels) and getting an SSD. Eventually I will have moved my entire personal life over to the Mac. Overall, I’m pretty happy with it so far. I feel like I’m jumping on the bandwagon a little late, but oh well.
A couple quick comments on the iPod Touch. I’ve been using it for a couple days now and it’s also interesting like the Mac multitouch. I’m going to be a lot slower at typing on that than with a keyboard. I’m basically reduced to using one finger. I have also started to figure out that it seems I need to hit just a little to the right of what I want to avoid mistakes. Again, the pinch/expand gestures are a problem, and in this case more difficult because you normally wouldn’t have it on your lap or on a table when you’re using it.
It’s interesting that ~15 years ago, PCs were very difficult for people with physical disabilities to use and got easier with voice recognition, laser ice, trackballs and touchpads. Now there is a movement to gestures and multitouch that makes it more difficult again. The same thing is happening with video games. First there was the addition of tons of buttons and now the movement to full body movement. It’s interesting what computing power has done.