content top

Browse All Posts by Swashata

has written 203 posts

Hey there! This is the place where I write about the technologies I understand. Personally I'm a geek and professionally Web Developer. You can also check my other site to get to know about my other hobbies ;)

Swashata has another home at http://www.swashata.com/

Following are the posts written by Swashata

Get post count of a category including sub-categories in WordPress

Get post count of a category including sub-categories in WordPress

From the title, you probably have guessed what I am going to talk about. In WordPress, we have many APIs to list down the category, but when we use the get_category function, it lacks the ability to show the post counts from its sub or child categories. Whereas, when we use query_posts or get_posts to get posts from a particular category, it returns posts from child categories as well. I faced this problem, while developing the 2nd...

Read More

MySQL: Working with date time arithmetic #Part 2.3.1

MySQL: Working with date time arithmetic #Part 2.3.1

So, this is the second last part of the long awaited MySQL datetime series. Previously we have leant how to work with MySQL datetime datatypes and how to automate some insertions using some MySQL datetime commands. Obviously the only thing left to discuss is, the (difficult) datetime arithmetic inside MySQL. As in any language, the datetime arithmetic is not as straight forward as normal arithmetic. The reason is simple, we can’t...

Read More

C Program: Replacing a substring from a string

C Program: Replacing a substring from a string

This is a nice piece of program I wrote a few months ago. One of my students requested me to write this. So, here it is! Hope this might be useful for you… #1: What the program does: This program finds all the occurrences of a sub-string within a given string and replaces that with our provided string. Basically there are many similar programs but, most of them lack the ability to find multiple occurrences. So I wrote this keeping...

Read More

C Program: Adding two polynomials using Linked List

C Program: Adding two polynomials using Linked List

So, this is our first C program in the blog. We first thought of creating a separate blog for C & C++ related posts, but because of the maintenance issue, we finally decided to merge it to the main blog. So, without any further here is the program. #1: What the program does: This program is a practical implementation of the data structure “Linked List“. We use a linked list to dynamically store user input of polynomial...

Read More

TimThumb vulerability – How it got hacked & how to recover

TimThumb vulerability – How it got hacked & how to recover

In our last post, we talked about the fact that we got hacked because of TimThumb vulnerability. While fixing the vulnerability, I realized that, we were not the only one who got hacked. Plenty of websites using TimThumb to resize their images, got hacked. So, I thought of putting together a nice step by step guide on how to recover from this kind of hack. Please note that, while the nature of the hack may vary, we are trying to give an...

Read More

Intechgrity reincarnated – Recovered from TimThumb vulnerability

Intechgrity reincarnated –  Recovered from TimThumb vulnerability

It’s been quite a long and this time, I really had to suffer for my negligence. For a past few days, if you had a visit to our blog or any of our network sites, you should have noticed a “Malware Warning”. This was because of the known vulnerability of TimThumb which our theme was using. I believe on 7th Nov, our intechgrity blog was compromised and suspicious codes were injected. The worst thing was, all the index.php...

Read More

Properly add pagination to your WordPress Plugin

Properly add pagination to your WordPress Plugin

It has been quite a long I am doing stuffs with WordPress. The one of the nice thing about WordPress is, we get a ready to use admin backend with almost all possible css’ needed! Nice table structure, nested menu, Title with nice icons, pagination…you just name it! WordPress has them all! To use them, what we need to do is code our plugin so that it generates the proper xhtml code with proper css classes. Finding the correct CSS...

Read More

Howto: Use jQuery UI dialog as reusable modal prompt

Howto: Use jQuery UI dialog as reusable modal prompt

jQuery UI has always been my favorite tool for creating custom and rich User Interface. On my last project, I thought of using the UI dialog as reusable modal prompts, just like some jQuery plugins like Colorbox, Fancybox etc. But while doing that I faced some problem like, chaining the dialog to multiple class based selectors and attaching the dialog open events to respective anchor elements. After reading the documentation a bit, I came...

Read More

iTg Sexy Horizontal 1 tier Dropdown menu

iTg Sexy Horizontal 1 tier Dropdown menu

Well, it has been a while since we announced the long awaited come back of ours… But it’s never too late to start . So here we are with a new Free Project! I was going through some free psds of navigation menus. I found one really good and thought of converting it to a nicely coded CSS/XHTML menu. But I couldn’t stop myself and added a bit of animation using jQuery! Here you can find the demo and the as obvious the...

Read More

The evil spirits are back

The evil spirits are back

Finally someone reincarnated the evil spirits… It’s been quite a long (really loong) we were caught inside the bottle, but now we are free again. And just like those old fairy tales, after such a long time of thrall, we have become more powerful and stronger. Yes! You have heard it right. We are now limited not only to WordPress… We have extended our knowledge to a better eCommerce platform, Open Cart. Thanks to our...

Read More
Page 1 of 2112345...1020...Last »
content top
TOP