Online ads and memory leaks


repair-water-leaks1For some reason that still eludes me, after all these years, browsers, no matter which, suffer from terrible memory leaks. I have a feeling that it has to do with plug-in’s in general and Adobe’s Flash in particular. Just open a browser, any browser, load your favorite web site and go eat lunch.

When you return, start your favorite task manager and take a close look at memory usage.

Those very creative, animated, and incredibly-annoying ads with telepathic powers that know not just what web sites you visited last night but what products you looked at as you were johnesing for material gratification, will eat your computer alive, for lack of better terms, and today, fed-up with this crap, I decided to take matters into my own hands – and it was gratifying to see all those pesky ads disappear as if by magic on every page as I reloaded it. But the most amazing thing was to watch the graph for cpu-usage go quiet and the one for memory consumption go down to acceptable levels. So much, that I wondered why the hell I didn’t do this before. Maybe I do like ads, after all, but don’t take me wrong, I don’t mind one bit living an online life that’s uninterrupted by commercials.

The best part is that reaching this non-consumerist nirvana required absolutely no new software or plug-in’s. All it took was a file. A simple text file: hosts.txt (or plain “hosts” if you use a Mac or any of a gazillion Linux incarnations).

The hosts file is like a little black book of addresses. Whenever you enter a url in a browser (i.e. blogsperiment.wordpress.com), your computer looks at the hosts file to see if the IP address corresponding to that URL is there. If it is, your browser starts communicating with the web server at that IP address. If it isn’t, it asks your router or your Internet Service Provider’s DNS server for it. Do you see where I’m heading with this?

Wouldn’t it be great if your host contained entries for all the servers that push those ads on you, but instead of having them point at their correct IP addresses have them point at dead-ends?

Dream no more. There is a hosts file out there that does exactly this. You can download it from http://winhelp2002.mvps.org/hosts.txt. This hosts file contains entries for over 10,000 servers.

I won’t go into the details on how to do it, but all you need to do is download the above file and append its contents to your system’s current hosts file (in Mac and Linux, the file’s in the /etc directory and in Windows, it’s kept in the c:\windows\system32\drivers\etc folder).

If you want to see the magic as it happens, open a few browser windows and have them point to web sites that you know to display ads, then modify your hosts files as explained above, and now go back to your browser windows, hit the refresh button, and weep.

The following links describe ways in which your hosts file can be updated automagically, if you don’t feel like doing it by hand:
– For Windows: http://winhelp2002.mvps.org/hosts.htm
– For Mac/Linux: http://www.putorius.net/2012/01/block-unwanted-advertisements-on.html

Happy blocking!!!!!!

 

[edit]: It’s been two hours since the change and after purposely-crashing chrome, so it would reload all the pages I had open (about 40 tabs altogether) EVERYTHING is running much more smoothly than before.

Gartner just killed Blackberry


bone

I have a bone to pick with Gartner. I’ve had it since the year 2000, when they predicted, like they’re doing now, that a product I used was dead.

You see, I don’t know much about this company except that CEOs pay attention when Gartner speaks, and with that, predictions very easily become self-fulfilling prophecies.

In 1996, just like they’re doing now, Gartner predicted the death of Microsoft’s Visual Foxpro and since then until Redmond finally put it out of its misery, it was, for a lack of a better word, a miserable time for those of us who had the fortune of working with it. A fortune, because it was a very mature product; it was a reliable (something I’d be hard-pressed to say about most Microsoft products) and, most-importantly, lightning-fast database management system. It was a self-contained development environment, much like visual studio, but if a client needed a program that required a database back-end, you didn’t have to look elsewhere (i.e. SQL Server) and, in addition to being able to use its own database engine, it could connect to anything client-server out there. In addition, it was object-oriented and it really honored the term (coined back then) “Rapid Application Development.”

But Gartner said it was dead, and from that point on, clients started shunning anything Visual FoxPro, even though its abilities were proven well beyond any reasonable doubt (the logistics of transporting troops and equipment back and forth to Iraq during Desert Storm was handled by a system developed in Foxpro for the most part). Business owners were afraid they’d look bad when they told their friends that their companies use tools developed with VFP, and CEOs, of course, didn’t want to be the laughing stock of other CEOs.

But this blog entry is not about VFP (as much as I like it and still use it when I need to extract data from large databases QUICKLY or for writing rogue apps here and there, also quickly) as much as it is about the Gartner Group. By predicting an event and being as credible as they somehow managed to become, it’s impossible to really separate the prediction from the event. It’s probably a social example of the Observer Effect, in which observing a phenomenon has the effect of changing the phenomenon itself.

Now that it’s out in the open, I won’t even bother saying that Blackberry’s not dead. R.I.M. might as well change its name to R.I.P., for all it matters. As I write this, CIOs and Office Managers around the country are scrambling to replace all their blackberrys with other phones because Gartner said that the Blackberry is dead and their bosses and CEOs heed Gartner’s advice.

It would’ve been nicer if the folk at Gartner kept their predictions to themselves, but it’s impossible to ask for discretion from someone that’s in the “predictions business.” Now, if someone could just predict Gartner’s death…

If a tree falls and no one…


Google evil

I’ve noticed lately that many times, right after paying for online purchases, Google offers to protect the goods I just got. And they want to do it for free.

I don’t like free, and I don’t like free coming from Google because one way or another, you pay for anything you get from the search behemoth (it really sucks that they have the best search engine by far over the best of their competitors, because I’m stuck with them). Of course, the price you pay is a bit of your privacy, which makes the uproar over the NSA’s scandal quite ironic.

Today, as I had a few minutes after purchasing a few things for a client, I decided to click on the “learn more” link at the now ubiquitous offer from Google and the only new thing I learned is that the protection doesn’t go beyond 60 days after the date of purchase and it only covers $1000 worth of lifetime claims, not to mention that the coverage itself is rather lame (google “google your purchase protection” and see for yourself).

The exercise was more to satisfy my curiosity and confirm my suspicions than anything else, and confirmed they were:

” If you opt in, the merchant will share your
order information and email address with us.”

It’s really ironic how the leak about the NSA’s practices elicited quite an uproar for rather basic information being collected on us while someone collecting (and aggregating) information as detailed and intimate as what we buy, how much we pay for it, and how, results in collective non-reaction.

I expect more than handful of souls to cry that our government was doing it without our knowledge, while Google’s Purchase Protection is 100% voluntary and overt. The latter is, technically 100% true, but in this day and age, to be aware of the ability of a government organization that’s powerful enough to be cloaked in the utmost secrecy and expect that it will only gather information outside our borders and only on foreign individuals and entities is the epitome of burying one’s head in the sand. And yes, Google’s program is voluntary, but how voluntary is something when it is a given that most people offered it will accept? I’m willing to bet that the opt-in rates are well over 90%. After all, you’d have to be an idiot not to accept something that’s free, and most people can’t be idiots. Right?

So, going back to the title, if Google does something evil and no one notices or cares, is it still evil?

Back to apple


After 31 years of not owning an apple computer, I got a Mac. A Macbook Pro, to be precise.

During the past 31 years, I used DOS, Windows 286, 3.0, 3.1, 95, 98, 2000, and XP, then linux’s Gnome, kde, peppermint, lxde, and xfce.

My first impression, like anyone else’s, it seems, was that this is a beautiful desktop, and the display (retina) and the computer itself couldn’t be prettier, but I must also say that in three decades I have never ran into an operating system that so adamantly discourages the use of the keyboard.

I realize that a lot of it has to do with the fact that I don’t know the shortcuts, but unlike most users, the first thing I try to learn is where the keyboard shortcuts are (regardless of how intuitive it is to use the mouse, it’s a waste of time if there’s a shortcut available to do what you want to do), and I’ve found that there aren’t a whole lot of them, and many functions that do have them, have no indication of them in the application menus I’ve come across so far (xCode, finder, etc.).

The finder, which is the mac’s equivalent to Windows’ explorer gives the impression of having been included because it’s necessary, but its design and implementation makes me wonder if apple’s designers made it so poor on purpose, as if to discourage its use – this may very well be true, as many of the problems I’ve had to fix over the years stemmed from users carelessness with Windows’ explorer. But to use the <Return> key to rename files and folders is rather counter-intuitive; especially when the Finder’s Edit and context menus don’t even hint at a function to rename items.

The fun part of all this is that whenever I’ve had to look for an answer online and it happened to be in a forum (doesn’t matter which), there’s always a handful of useful answers followed by 50 messages ranging from moot arguments for and against what was asked to all-out religious wars.

All in all, though, I can’t complain. Considering that OS-X is bsd-based, having 2-years worth of linux experience in my bag has helped tremendously to find my way around the new system, but I’m still a bit daunted, as I have just weeks to learn what could easily be called a new paradigm in usability and be productive creating an app for iPhone/iPad.

Time to go to bed and put my brain to rest…

Android or IOS?


Image

I don’t own a smart-phone.

First, it doesn’t fit comfortably in the back-pocket of my jeans, and second, I don’t find it sensible to spend $100 a month for a plethora of features I will hardly ever really need. I’ve a tiny mp3 player from Sansa that I sometimes carry in my backpack, and if I want to entertain myself, I can either read a book or catch up with things on the netbook that goes wherever I go.

But, if I were to get a smart-phone, it would be from Apple, even though I’m pretty sure that Android is just as good, if not better, than IOS.

Android seems to be going in the same direction as Windows. An operating system with a number of holes, that would be better-plugged by a full re-write than by almost two decades worth of patches (no, as a programmer, I don’t buy any of Microsoft’s allegations that Windows x, y, or z was a full re-write of a previous incarnation – bugs don’t carry over from one re-write to another). And Android is not likely to be re-written from scratch in order to harden it to attack. The world of open source simply lacks the resources.

Volunteers can’t afford the time needed for a re-write – version x+1 is more important than rewriting version x in order to fix it if it is to stay competitive vis-a-vis commercial wares. Companies like Microsoft can’t afford to because it affects their bottom-line and, gasp, their stock’s value (owner employees have a conflict of interest, if you ask me). And Apple doesn’t need to because they were never interested in a product that shows openness of any kind.

Google detox


Took me, a while to take the plunge, especially because all my email is forwarded to and answered from my gmail account, not to mention that another such account serves as a backup for all incoming mail, but last week, after a lot of trepidation, I opened a zoho.com account.

As opposed to gmail’s 10GB limit, zoho’s mail boxes are only 5GB, but hopefully that won’t be a problem. And if it is, well, I’ll create another account or move my email somewhere else.

So far, I’m liking zoho very much. Took me a few days to get used to the interface, but it’s OK, even though you can’t sort emails by sender or subject (one of my pet peeves with gmail).

Spam filtering isn’t as good as google, but having to delete some 10 emails that fly under the radar every day isn’t too high a price to pay for a sense of real privacy.

My plan is to use both services in parallel for a few more days and then have my email forwarded to zoho.com exclusively.

Zoho.com also has a calendar tool (among a slew of other apps, similar to google’s offering), and importing my events and reminders from google was a seamless process.

So far, I’m enjoying zoho. It looks like a keeper and I’m one step closer now to leave google as behind as possible.

Privacy – yes, I know, more of the same…


It’s quite ironic that science fiction has led us to believe that it would be government who, by 1984, would be watching our every move and know more about ourselves than us, yet it is the poster children of the free enterprise, Google, Facebook, who would really have this ability and we’d be asking our governments to find a way to curb their voracity for the data that are our lives.

Google doesn’t say much about what it does with our information, but it’s just a matter of time before their vast database of emails, search patterns, clicks, and, lately, phone call transcriptions (possibly done in real time) are offered for hire, providing anyone willing to pay the price with a chillingly accurate image of our lives.

Facebook keeps making statements, which are changed about every six months in subtle ways, but judging about how the social network works, they should stop the crap, come to terms with reality, and change the name of their privacy policy to “publicity policy.” I’m the first to admit that it provides a rather pathetic picture of who most of the people in my contacts list really are (and how little they have to offer), but I can’t get away from it for prolonged periods of time. It appeals to my (and everybody else’s) narcissistic sense of self.

Will any of this happen? I don’t think so. As much as we hate the beast, we just can’t stop feeding it. They’re like those mythological creatures that feed on hate, yet everyone hates them.

%d bloggers like this: