Why I Like Linux

January 9, 2010 | 6:06 am

…. Or, Re: Mhd Badi Latest Mac Post.

Apple fanboys are annoying. This is a mouthful to say for a guy who really hates generalizing. Yes, I hate generalization and I hate blind prejudice, but I’ll talk about that in a later post.

This ranting post was triggered by Mohammad Badi’s recent post, however it is directed at all Apple fanboys (and girls). I don’t mean to pick on Mohammad, he is a really nice guy and I enjoy his blog (he actually did say that an OS is a matter of personal choice, and I agree with him).

For the record, I have used Windows, Mac, and Linux. Right now, I use Linux. More specifically, I use openSuSE Linux and I have been using it as my main OS for the past 4.5 years. Also, to be more upfront about this, I am a computer science graduate student. That means that I write code and documents by profession. Before anybody accuses me of such, I am not a hacker. Repeat: I am not a hacker. Not by a long shot. I have not written kernel code and I do not plan to do that anytime in the near future (unless my advisor forces me to :-D ). However, I am a power user. That is, I like (and prefer) to use the command line shell, I automate many things, I mess with and write configuration files, and I have repeatedly messed with drivers and configs to crash (and sometimes even recover) my machine. I also like nice aesthetics . I like my operating system to look good. Actually, I initially only switched to Linux because it looks good. I use a persona on my firefox, and a theme on my Google chrome.

Again, I am replying to Badi’s post here, but I think this applies in general.

Alright, done with the prelude. Onto the main event:

Mohammad,

Almost every time I open your blog you have a different theme. It has gotten to the point that today I opened your blog to find a theme different than yesterday’s, then when I left a comment the theme changed again! Pick a theme man! Every time I come to your blog I have to check if I am at the right site because it looks different. And these are not small or subtle changes, when you change theme you change big! All the power to you, I like change, it’s the spice of life. But everything within limits, create a distinct look for your blog that let’s people recognize it. However, for the record, I admire your passion for customization.

What does your blog theme have to do with Mac? For a man who really likes to continuously customize his theme, isn’t it a bit odd that you so madly love an operating system that does not even let you customize it beyond what saint Jobs has decreed? Tell me, how many options do you have for changing the windows decoration (title bar and such) in Mac? two? Even crummy old Win95 allowed you to choose any colors you want. What about that menu bar at the top, can you remove it? How many coloring options do you have for that? two? three? Praise Jebus! (and here).

You said that Windows is not that powerful. Excuse me, was there something you wanted to do there that it didn’t allow you to? Have you encountered the elusive “oops, that is beyond my power” error message? I already know what you are going to say next: freezes, crashes, bsod, blah blah blah. Here is the truth. Windows does crash (more specifically, the versions of Windows that i tried do crash). But more than 90% of the time it is not because of Windows but because of faulty (nay, shitty) drivers. Here is the thing, Windows runs on other people’s machines. Each of these machines will use a different set of drivers. Microsoft says, ok, if you want to run Windows on your machine, you should write a driver that tells Windows how to use your proprietary hardware. People write these drivers, but don’t write them well, and that causes the machine to crash. But why can a driver crash the machine? Easy! Because they have to run in kernel mode, so they can do pretty much whatever they want. Apple on the other hand controls everything. They sell you the machine and the software running on it. Thus they have a limited number of hardware vendors and drivers to deal with. As you can see, this allows them to centrally reject shitty drivers. Each approach has its advantages, but I personally prefer openness because I believe in choice & competition.

I don’t deny that Apple makes fine products. No doubt about that. They pay attention to details and the hardware is generally of great quality. But it is important here to distinguish between software and hardware. It is also important to distinguish between the Operating System, the hardware, and the rest of the software application stack that runs on your computer.

You say that Linux’s design is poor. I assume you are talking about the graphical aspects right? If so I challenge you to see one of the well polished distros. Check out KDE on openSuSE or Gnome one LinuxMint. Here is one the main things I love about Linux: It gives me choice. If I wake up today feeling like using KDE, I do that. If I feel like Gnome, that’s fine. If I want to geek-it-out and use Fluxbox or Rat-poison, that’s fine too. Not only that, but I love that it is highly customizable. It tries as much as it can to fit you rather than the other way around. In Linux there are a million ways to do anything. In Mac OS or Windows there is only one way. Their way or the high way. For example, on my machine I have at least 3 file managers. I use which ever I feel like. I can customize my system just the way I like it. I can have as many (or as little) panels floating on my desktop as I want. I can have my kickoff menu be where ever I want it to be. On my desktop I can show the files of any folder that I want, or any combination of folders (not just the files from the “Desktop” folder). On my Linux machine I can customize any shortcut for anything I want and I do mean anything. I bet when you switched to Mac you had to learn their shortcuts for doing things, right? For example, AFAIK, you have to use a different shortcut to switch between windows of different applications than that for the same application. What if I want a shortcut to maximize a window vertically only? or horizontally only? or move a window to a certain area with just key press? Can i do that? While we’re at it, If i want to truly customize my Mac and get rid of the menu bar on top, can i do that?  No!

Notice that all my examples above were only about superficial user interface issues. At the core, I think all three OSes are superb. However, here is the point Mohammad, I think machines have to adapt to us, and not us adapting to machines. I feel Linux has that mentality. The default settings in Linux are merely a suggestion, but everybody customizes it the way they want. That is why people race to post screenshots of their Linux desktops, and that is why you have so many linux distributions.

In this rant I have defended Microsoft, praised Apple, and explained why I love and use Linux. Personally, I think all 3 of these operating systems are fine, and each has its own strengths and weaknesses. After all, (and this is something that I totally agree with you on), this is a matter of personal choice. You think Mac is superior, I respectfully disagree and think that Linux is a better option.

Update: Just to drive home the point that Linux has nice GUI, check out this video introducing KDE 4.3 (a Linux desktop environment):

Fun with Simulators and Thought Experiments

December 22, 2009 | 2:28 am

Computer simulation and modeling are amazing disciplines. They are used all over the place. Examples include predicting weather (weather models & earth simulations), testing engineering designs (simulating the design and operations), simulating physical phenomena (testing physical, chemical, and biological models before running experiments), and simulating networks to test things such as computer networks or even human networks to study the spread of  diseases (e.g. how will a new flu outbreak spread through the world). In short, simulation is awesome.

So here is the thing, I argue that if you build a big enough model, a big enough computer, and a good enough simulator, you can probably simulate the universe in its entirety. I think this is possible because I currently think that there is no fundamental random process in the universe (i.e. if you can account for everything, you can predict anything). Actually, there is still argument amongst physicists of whether properties in quantum mechanics appear random because of unknown hidden variables (i.e. randomness does not exist) or because there exists something that is fundamentally random in the universe. .. but let’s skip this for now.

Anyway, let’s get to the cool part.

Imagine that we can build a *huge* simulator that can account for everything and predict (read: compute) anything.  This simulator would be able to replay everything from the moment of the big bang, to the formation of Earth, to the rise of human beings, to the conversations you have with your friends, to me typing this post now. Surely this is an amazing simulator.

Now imagine that you have access to this simulator. Not only that, but being the curious person you are, you use it to fast-forward and play events in the future. So the simulator will tell you what events will happen in the future. So you look at the simulator and it will tell you what I will eat tomorrow, what will life look like in the future, where will your children, .. everything. It will tell you everything. Again, this is an awesome possum simulator.

Now the mind-bending part.

If you look at that simulator to see you future, will your future moves happen because you want to do them or because the simulator told you to do them? For example, if the simulator told me to eat pizza tomorrow, will I eat pizza tomorrow because I want to, or because the simulator told me to? Remember, I can’t trick that program because it would have already accounted for me trying to trick it. So the minute you look at your future you don’t know whether you would have acted that way because you wanted to or because the program told you to.

For example, assume you have been a good person all your life, but the simulator told you that you will become a thief. Would that happen because you would have “naturally” became a thief, or because the simulator told you so?

Luckily (and unfortunately) it currently doesn’t look like we can ever build such a simulator because it has to also account for itself as part of the universe, so it has to be as big as itself plus the universe in which it resides (you see the problem).

For the computer scientists in the crowd, would such a simulator be able to solve the halting problem?

Gunman vs. Terrorist

August 2, 2009 | 3:42 pm

Human life is sacred. I think we all agree on that. So certainly one is saddened at any one’s death. But still, one can’t help but wonder. Usually the way something is conveyed is at least as important what is being conveyed.

Today an attacker in Tel-Aviv opened fire at a club for gay teen Isralis killing at least two people and wounding many. In the AP video report, the police chief says that he doesn’t know if the attack was carried out by a gunman or a terrorist but the evidence leans more towards it being a gunman. What is the difference you say  ? If the event is the same and the victims are the same and the attacker is the same, how can the event be a terrorist attack or a just an act of a gunman.  You would think that it all has to do with a motive. An gunman has his lone sick mentality that caused him to commit his act, while a terrorist does his act insited by other people and in order to strike fear in the general population.

True. But, not always. In Israel any Arab attacker is a terrorist, and any Jewish attacker is a gunman. Regardless of the motive. Yes, I have proof. Remember a few months back, a 19 year-old Palestinian from Jerusalem proposed to his lover and she rejected him, while he was driving back his car got off the road and veered towards some pedistrians, one of the pedistrians immediately shot the driver dead without attempting to do anything else. The Israeli police said that the boy was carrying a terrorist attack, while his family says that he probably just lost control of the car since that boy had no political interest or affiliation. What was interesting in that piece is that the boy was immediately judged to be a terrorist by the Israelis (and thus his family’s home had to be demolished) without any minute of investigation into his background. Simply the fact that he was Arab!

So yes. The words by which you convey an event are often just as important as the event itself.

Eat & Chew Quietly Please

| 3:27 pm

God! I hate people who display a “big effort” while they are eating or chewing. I hate it when some people chew gum with open mouths or loudly. It is so freaking annoying! I hate it when people breathe heavily or make “internal grunting sounds” that you would associate with hard physical labour or terrible illness yet they have done nothing and are totally fine! And I specially hate it when the person right next to me does that for half an hour straight!

 

Pfft!

The Coffeeshop

June 17, 2009 | 1:39 am

I am almost halfway through my summer internship in this new town. One thing that I am glad about is that there is an Arabic/Middle-Eastern street in town with a bunch of Arabic shops, turkish restaurants, and some coffee-shops, something I deeply miss in my collegetown.

I’ve been diligent to eat my fair share (and a bit more) of falafel, shawirma, kifta, and your other normal Arabic restaurant food. Perhaps I am preparing for the upcoming drought I’ll experience when the internship ends and I’m back at my small isolated campus.

Today after going to the gym (yes I am surprised too) I went for my daily dose of falafel at a nice Turkish restaurant. On my way back I noticed a cafe called “rotana” with the smell of m3assel spilling out of the door seams. I immediately thought “trix & tarneeb”, something I haven’t had properly for almost two years now.

I walked inside and the owner recognized I was new. He insisted to treat me to a cup of tea even though it was late and mentioned I had to leave. Typical Arab :-) . We were 3 Arab men; sitting in an Arabic coffee-shop with argeeleh, tea, cocktails, and cards served, a tv stood in the corner and nobody was lokng at it. The talk undoubtedly turned into politics even though we just met. Ahh how I missed hanging out with the guys in the 2ahawee. I haven’t had the chance to play tarneeb yet, there was no fourth! But I am happy, maybe because it reminds me of back home.