Moving again

July 4, 2010

I remember posting on my blogger account that I was moving to WordPress.com. It’s that time again. I’ve moved all the contents of this blog to my new home: http://www.csrdu.org/nauman

I’ll be cross-posting material on both sites for some time but after a little while I’ll simply move away from this site to my own hosted site. So, if you are reading this in feeds or check up on the site regularly, you should bookmark the new address.

I just finished writing my first machine learning algorithm in Matlab. The algorithm is based on gradient descent search for estimating parameters of linear regression (but can be easily extended to quadratic or even higher-dimensional polynomials). It’s fairly easy if you know the theory behind the model. So, first a very brief theory portion. This isn’t a tutorial on statistics. Go read a book if you don’t know about regression.

Read the rest of this entry »

I recently had to write a Linux Security Module (LSM) for one of my research projects and I was surprised to find that there are few tutorials out there and most of them don’t work because of the discrepencies in kernel versions. They’re talking about 2.000.x kernel versions! The only good tutorial I came across was the one on Linux Journal but it assumed some background knowledge (which I didn’t have). So, I had to struggle for a day to figure out how to go about writing the LSM. Hence, this tutorial.

Now, this isn’t strictly a newbie tutorial. It isn’t even a tutorial per se. It’s more like a guideline that will tell you where to look to find what you need. The reason is that if I write something specific, it’ll go out-of-date in a giffy. So, I’ll tell you the process of how I figured out the steps and you can (probably) reproduce them even if the specifics have changed. This might not be the best way to do it but it certainly gets you going. I had to take quite a few detours to get to these steps; so they might save you some time. Ok, let’s go.
Read the rest of this entry »

I’ve had enough. Some of my friends initiated the boycott a few months back but I wasn’t convinced. I was mistaken. Facebook has, time and again, refused to take action against hate speech and hate groups that operate within the platform. I came up with many excuses to keep using the platform and fabricated many arguments in its favour. Fortunately, I gave it time and now realize that facebook is to blame. Read the rest of this entry »

It’s been four days since I started working with eclipse plugins and I finally have my first useful plugin. It’s useful for my research purposes and hopefully for a small audience interested in my work. It might also be useful for those trying to learn how to write eclipse plugins because I’ll soon be writing a tutorial on how I put this thing together from scratch (inshallah).

For the time being though, enjoy the screenshot.

Update: fixed the plugin with a new ‘View’. It now operates much better with a separate view for the output and controls. Also added is a ‘Hierarchy’ view for viewing the policy in a nice tree structure.

I have tried, on multiple occasions, to write an eclipse plugin. I always gave up in the middle of the process though, what with the different versions of eclipse floating around and the discrepancies between the tutorials and the version I was using. I finally decided to sit down and go through a simple ‘hello world’ plugin and write a tutorial in the process to guide those that are using the latest eclipse. This is a tutorial for eclipse 3.5 (galileo) and is a no BS tutorial with little or no explanation. That’s because I believe in code first, think later approach when learning new technologies. So, download eclipse SDK version (not the Java or the C/C++ version) and read on.

Read the rest of this entry »

Zaid Hamid is cornered. He has nothing to say and nothing to clear his name with. As one of my friends put it, “there is no need to expose Zaid Hamid”. He is clearly deviated but some people still don’t get it. So, I thought I should help these people figure out what the question under discussion really is around here. It’s not about Zaid’s ideas about khilafat. It’s not about how good his speeches are. It’s not whether he works for the CIA or against it. It has nothing to do with any of it. The question that we are concerned with here is only of Yousuf Kazzab. If Zaid Hamid defends a kazzab, then:

  1. We can’t let it go. We can’t forget about it because it’s part of our Imaan to care about such things. We cannot tolerate someone who denies the finality of the prophethood of Hazrat Muhammad (Sallallah-o-alaih-e-wasallam). Period.
  2. It doesn’t matter what other things he does. It’s not relevant any more.

So, if you’re a “Zaid Hamid Fan” here’s a simple flow chart that can help you decide what your opinion is regarding Zaid Hamid. Clear your mind and come clean with what you think about him. Then decide what the real situation here is. (Click the image to see full size.)

Confusion among Zaid Hamid Fans