Sunday, August 21, 2011

Permalink Structure

WordPress permalink structure has given me nightmares lately. I had been thinking what is the reason for my website (eseaf.com/blog) being too slow? Half of he answer came out to be the permalink structure.

My permalink structure was something like this

/%post_id%-%postname%

but I never thought that it would draw a huge CPU time out of the 30 seconds slot. First wordpress compiles the permalink, then it uses the search function (the worst) to find slugs if I’m not mistaken and ID which is a part of permalink structure is never thought about in the wordpress. So the searching was drawing a huge amount of processing speed slowing the overall website down.

But there seems to be nothing that I can do about it. When I remove the permalink structure and set permalink to default morphology the old links start to give 404 errors thus breaking all my links that are coming in from google and other search engines etc which can lose me quite a traffic.

So, I installed a plugin called ‘advanced permalinks’ all it does is not disabling the old permalinks while we set a new permalink structure, provided the new permalink structure is not the default structure. So, now I’ve set the permalink structure to:

/%post_id%

and that’s all, I’ve done this in a hope that now wordpress would search for post IDs rather than slugs to find a post which is much faster. But I still think that category search and tag-search is drawing a huge amount of proccessing power too. I need to take care of them too now.

Just a piece of advice: Keep your permalink structure to default one only

(copy-pasted from eseaf.com/aurangzeb 'my other blog' )

Saturday, August 6, 2011

WP Black Project

The wordpress improvement project is named as WP Black. You can see the progress here: eseaf.com/takht

Wednesday, August 3, 2011

Wordpress Timer Plugin

Just completed my project on Wordpress Timer Plugin. It took about 8 days to complete with all the bells and whistles and it was fun to work on. The project was assigned by Ben W. (Don't know complete name sorry).

The wordpress improvement thing is not going very fast but now I have an idea what to do. But I still have to check a lot of things. But the end result seems to be fine ;)

The idea is based on facebook, like facebook that uses cassandra as a separate key-store, we're going to use our mysql to do the keystore job. That should improve our speed.

I'm also planning to distribute the bigger load on different mysql servers. This way, the retrieval of data can be speeded up. But I have seen a little number of people interested in the project. I received just 5 hits yesterday. Thougn I must thank An Average American Patriot an awesome blog that honoured me by following my posts.

to anaverageamericanpatriot.blogspot.com, Thank you! I salute you!

Tuesday, August 2, 2011

The Idea Behind The Improvement of Wordpress

Improving the database of wordpress doesn't seem to be an easy task. Because one thing goes up the other goes down. But anyways, I have to do it. Because wordpress people themselves wont like to plunge in the thing that doesn't bother them much.

The people who use wordpress are mostly those who don't have to blog a lot. Unlike huffingtonpost and cnn.com etc. They're so happy when their blog count reaches 1000.

But in our case, my case that is, my blog went too faster than this. In the first month, I had about 10,000 posts already posted. And wordpress was working with little or no problem. Now, my blog has reached a number of 49,000 posts and wordpress says goodbye many times in a day. I never saw it coming because of so much good words that the people had to say about wordpress.

Even now, if I update my blog to multisite, I'm facing a lot of problems, for-example, The blog-posts are all seo-optimized. Then there would be a problem of optimization... that would be a huge one because then there would be folders for example now my posts look like this:

http://mywebsite.com/blog/what-ever-this-is-just-a-link-test.html

But after the upgrade, it would look like this

http://mywebsite.com/blog/blog1/whatever-this-is-just-another-link-test.html

So, see, the posts come under folders. I and the search-engines wont like that.

So, I have to do everything on the wordpress single-site... and I hope I have finances to do that.

I have installed an adsense advertisement to help myself going forward. Don't get freaked out by that. Eventually I have to upload that optimized blog here and most probably for free ;)

Wednesday, July 27, 2011

FreeBSD Destroyed my Ethernet Cards

Just an old story came in my mind and I thought I should inform you guys too. Those who try to run freebsd on their PCs.

I had two lan cards, one intel and other 3com.

I installed intel one first and I was using it for more than two or three months. Then I installed freebsd and I saw improvement in my Internet speed. I was very happy with freebsd initially. But after about two weeks of using freebsd, my lan-card started to malfunction. I thought that my lan card is not working under freebsd may it's because somehow my software has got corrupt. So I installed windows again. But the lan cards stopped working. My lan-cards reception was fine but the transmission had completely stopped working.

I took it as normal, I got a new lan-card, installed and start working on my pc using windows again.

About a month later, I had a thought about installing freebsd again, because it was faster on Internet than windows. So, that's what I did. Installed freebsd to enjoy faster internet. But then again, no more than 15 days after my freebsd installed, my ethernet cards stopped working again. And this time, the problem was the same. Reception of the lan-card was fine, but the transmission was completely down.

From this I got a lesson, never install freebsd again if I have to get my pc running. It was such a cool operating system though, had a lot of beautiful very useful options. But, it destroyed my lan-card. I used version 5 though. I hope new versions are not harmful to PCs.

freebsd is not an operating system for PCs. So, there can be a compatibility problem. Thats what there was in my case. I think the lan-cards that I used weren't compatible or atleast advised to use under freebsd. Next time I think about running a system on freebsd, I shall think about buying a freebsd compatible system from freebsd people, so that if there is a similar problem, I could blame the freebsd directly.

last note, only use operating systems on your PCs that are advised to be used on them. Don't install linux on a windows system and don't install windows on a linux box. It doesn't work that way I guess. Didn't work that way in my case atleast.

Monday, July 25, 2011

Improving wordpress

Wordpress sucks... I have about 2,000,000 records at eseaf.com/blog and the system is on it's knees... That's totally bad. I don't like it. I had so much good thoughts about wordpress.. but hey, there is one good thing about it.. it's very flexible. And I'm going to use it's flexibility!!!

It's time to get my website running again. and it's time to improve it's database... If I get some following here, I might upload the improved beast for free!!! :)

Let the hacking begin...

I'm thinking about uploading my progress at tech.eseaf.com

Do Pashtuns of Pakistan want to join Afghanistan?

I'm sure a Pashtun could answer that question far better than I can, so my response won't be a simple yes or no. But since you'v...