Skip to content

Posts from the ‘Computers, software and engineering’ Category

21
Nov

Backblaze and Spotlight

Last week, on more than one ocasion, I could feel my laptop getting really hot for no apparent reason which pointed me to take a closer look at what’s using up my resources. Indeed CPU & memory were being intensely taken over by mds and md-worker (mkay, they weren’t really “taken over”, more like one core was and half a gig of RAM, but still quite significant). What are those, you ask? Well, they are processes related to Spotlight, that wonderful little tool on the Mac OS that just seems to know where everything is on your system. In order to do that though, it has to spend some time going through your new files so that it can find them quickly when you’re looking for them.

I was on the right track, but I couldn’t really picture any reason why Spotlight would be working out so intensely all of a sudden, as I hadn’t copied any large amounts of files or anything of the sort in the previous days. Even if I had, why would it take so long to index them (it was pretty quick with everything in the very beginning). It took a bit of searching around, but I eventually tracked down a bug that makes Backblaze (a cloud backup service) and Spotlight not play well together.

Here’s a description of the problem and very easy fix (on the Backblaze website! How cool is that? Good job tech team!); it boils down to Backblaze playing with a (large) log file very often which apparently makes Spotlight want to reindex it and results in a continuous load on that process. All you have to do is tell Spotlight to ignore that log file. Done, everything is back to normal.

(Note: It seems that Backblaze does try to tell Spotlight to ignore that folder when it installs, but sometimes it doesn’t work right. Maybe it’s a Lion-related bug? I don’t really know, but nonetheless, it’s good that they actually put up a description of the problem and fix on their website, I really liked that).

16
Nov

E-Books ups and downs

Almost a year ago I blogged about getting a Kindle and how I was pleasantly impressed by it (that’s an euphemism for being totally blown away). It’s been 11 months and in this time I have downloaded 58 books on my Kindle. Wow! Now I say download and not bought because about half of these are free ebooks that you can get on Amazon (mostly classics). Out of all these I read probably about 20-25. In case you’re wondering how do I end up getting more books than I actually read, that’s an interesting topic that I’ll touch on another time.

 

Regardless, that’s still a lot of books read and a lot of books bought. I can say with certainty that I bought more books this year (using the Kindle) than in any year before because of the convenience. Nonetheless, among these numerous books, free or paid, there is not one technical book. I just never bought an ebook that I would be directly using in my work. There are several reasons for that:

  • Kindles are great for reading a novel from start to end, but not that great for flipping through pages and going back and forth
  • I don’t even notice the screen lag when I’m reading, but it would bug me a lot if I were going back and forth between a few pages (as I often do with reference books) or if I was searching for something specific
  • No color makes many figures and screenshots useless and most others hard to read
  • The screen is small by “tech book” standard. This is perhaps a weaker argument since there are larger Kindles, but for me it’s an argument nonetheless
  • Old habits die hard… I just like having the reference book next to me so that I can flip through it, make notes and of course throw it at the wall when code crashes!

Recently though I did purchase what is most probably my first technical e-book. I actually bought three of them in a pack. These are the Android Books from CommonsWare and again there are several reasons why I decided to buy these. As tech books go, these are quite cheap actually so it’s not a huge gamble if it turns out to be a bad idea, I could check on the author (by observing his inhuman rep on StackOverflow and the way he explains things there) and they actually seemed quite promising in terms of quality. But really, the one selling point that got me to decide on this almost immediately was getting Free updates for one year.

Now let met just stop there and expand on that. Free updates for any period of time is a HUGE thing in technology documentation, especially with something young like Android that mutates into something new every 10 minutes or so. My previous book on Android was outdated by the time I purchased it. By the time I finished it, Android was something else altogether. Updating books is something that you can’t have with “dead trees” and I cannot overstate its importance for tech books. I believe this to be the strongest argument for getting tech books electronically. Unfortunately, not all ebooks come with this benefit (actually…most don’t as far as I know), so the argument becomes rather null. It’s sad to have a medium with so much power, but find it not be used to its full capability.

 

Of course, I’m now back at my original concerns. Having this new ebook I was faced with the challenge of…well…using it. This is for personal work and I’m doing that off a laptop now which means that I don’t have three screens so that I can put the book on one and just work as normal. Lion’s fullscreen mode plus gestures actually helps a lot, it’s easy to switch between the book and the environment… but I still have to switch, which is a bit annoying (for those of you confused, I was spoiled by working on two 24+21 inch screens for a year; you just can’t really ever get over the experience of 40″+ of screen space).

Among my numerous options with these ebooks, I could get a Kindle version of the book so I could put it on my Kindle, but I run into the problems I was previously mentioning. Again, call me fussy, but I just can’t see myself using my Kindle for a tech reference.
I think this is where I become interested in having a tablet. I can genuinely see that be useful for something like this. A 10″ screen is decent size and if going through pages is as smooth and quick as it is on the computer, that’s great. Since the reasons for getting a tablet are adding up, maybe once the Kindle Fire makes it to the UK, I’ll look into that.

(You know, it’s funny how when the iPad came out I was completely unmoved and considered it a dumb idea and as time went by, I slowly started buying into the whole tablet thing; I hate to admit something like this, but in this case Steve was absolutely right… I had no idea what I wanted until he shoved it in my face. Damn!).

29
Oct

DVD Regions and why pirating survives

We still have DVD regions??? Really? I was under the impression that they had just quietly went away in shame. But as I recently discovered… I was very very wrong.

So here’s the background for this rant. I have a number of DVDs that I bought in the US. Having bought them over there, they are in “region 1″. European DVDs are in “region 2″ so I have to keep the DVD on that region for rentals and any DVDs I buy here. I can switch the DVD reader from one region to another, but I can only do so a limited and small number of times, so it’s not like I can keep switching the region as I play different DVDs.

I completely fail to understand how DVD regions actually help prevent piracy in anyway (if you get it, help me out here), but what it means to me is that I am not allowed to properly and easily watch DVDs that I have purchased legally. This is a very very important point, maybe the most important point. I did the right thing, I purchased the DVDs instead of pirating them and now, instead of being rewarded for this, I am being “punished”. How does that encourage me to buy more DVDs? In the global world we live in right now where people move around so much and travel is so common, I find this system to be completely idiotic. Actually, let me build that up one step further, just so that we see how deep the rabbit hole goes.

Token cat picture!

One idea out of my predicament would be to rip these DVDs or to make copies that are region-free. But of course, that’s illegal as well. Yes, ripping my own, legally purchased DVDs, for my own, personal use, is not strictly speaking legal either (it depends on where you are in the world, but my understanding of UK law is that it is not legal).

Facepalm time

Take a step back now and compare this with what one does when downloading a film illegally. They go online, find their film on a website in less than a minute, download it in a matter of hours (if they have a really good connection, they can probably start watching right away) and they are free to store, copy and make use of that film however they desire. All that for free.

I wonder how much longer will it be before people in the music & film industries understands that pirating is doing so well not necessarily because it’s free, but because it’s hugely incredibly more convenient than the legal options. It’s how it should be right now, it’s what you expect from modern technology given the way the world around you works. Right now, clients have to pick between a paid service which is extremely inferior to the “free” one. When you put it that way, it’s not that hard to see why the morals of pirating films become easy to overlook for such a high percentage of the Internet population.

So do you want to stop people pirating? Never mind the DRMs, never mind the DVD regions, never mind the little holograms, drop all those programs and invest in making it easy for me to get to my content! I am willing to bet that if most people had to pick between a legal and reasonably priced option that would allow the same “benefits” as the illegal free one, they would happily give you their money. But as long as the media companies are trying to offer their consumers less, for more money, they will keep losing battle after battle until they get wiped out. Just look at online streaming services. It’s convenient, it works well and people will pay for it, even though they could get the same service for free.

27
Oct

Sad October

This has been a very sad October for the tech world. After Steve Jobs passed away earlier this month, we lost two more tech giants in the following weeks.

Dennis Ritchie

Dennis Ritchie, known best as the creator of C and a key person in the development of Unix, died this month. With all the credit given to companies like Apple and Google for their innovation, it is important to say that without people like Ritchie, none of what we use right now would be around.

John McCarthy

And if that wasn’t enough of a hit to the tech world, John McCarthy – the inventor of LISP and a pioneer in artificial intelligence – also died this October. Both Ritchie and McCarthy were Turing Award winners and I would say influenced the world of computing at least as much as Steve Jobs did, if in a different way and not so much in the spotlight.

If you take the most recent iPhone, this influence is easy to trace. The operating system is a “unix-like” OS. The programming language for building apps is based on C. The new Siri “talk-to-your-phone” functionality is just a modern example of the progress in artificial intelligence. So while we pay our respects to Jobs for his dedication to usability and aesthetics, we mustn’t forget the people working behind the scenes to make these technologies possible. All of these are essential to the progress of the tech world and they are all deserving of our respect, love and gratitude.

25
Oct

How to format my USB drive for Mac and Windows

I was getting a bit frustrated this morning because of various problems moving files back and forth between my Mac and the other Windows machines in the house. All my portable drives, whether they were flash drives or external hard drives, have been formatted to NTFS for the past few years which always worked okay for me before. Windows obviously handles NTFS perfectly and Linux has no problem reading or writing to that either. Unfortunately, Mac OS doesn’t seem to play as well with NTFS (at least not out of the box). It can read NTFS, but it can’t write to it.

So now starts the file system war again. If I leave my USB drives in NTFS, my Mac can’t write to it. If I format it for the Mac, it won’t work on Windows. If I format it FAT32, it will work on both, but it won’t handle files larger than 4gb.

Facepalm

Now before people start commenting about this or that app that handles different file systems, I want to stress that I am aware such applications and plugins exist, I just wanted this to work easily/natively/out of the box on all computers, without requiring this extra layer.

After quite a bit of digging around, I found out about something called exFAT. You can read the wiki page for more info, but in a sentence, it’s somewhat like FAT, but can handle large files. It’s compatible with pretty much any Windows you’d be running in 2011 (hopefully) and Mac OS starting with Snow Leopard. So this should work fine for thumb drives going between the two OSs.

Of course though, nothing is perfect… exFAT is not compatible with Linux. So sooner or later, the file system war will start again. Until that dark afternoon, let’s pray for peace.

xkcd: Standards