Archive for category WWW
Removing tags from Wordpress posts content
I have been using Wordpress since version 1.x and back then there was no native support for tags in Wordpress. Easiest thing to add tags to post was to use UTW or other plugins and because of my new found love for tags then, I started using WP-Tagerati and then moved on to Ultimate Tag Warrior. Using these plug-ins meant adding custom tags such as
<tags>foo, bar</tags>
or
[tags]foobar[/tags]
into each post. The plug-ins would parse the post for these custom tags and then tags could be displayed using some APIs provided by the plug-in.
Since v2.3, wordpress now comes with built in support for Tags. This has eliminated the need for using the above mentioned plugins. So, I decided to get rid of them. On disabling the plugins, I noticed that the custom tags along with the tagging information were appearing as post content. To fix this issue, I initially started using Embedded Tag Thing but finally decided to get rid of the tagging information from the posts altogether. Before you do get rid of the tags, do make sure that you import them into wordpress’s tag data, so that you don’t loose this information totally.
Considering that you have a standard installation of WP, fixing this problem is a breeze if you don’t mind playing a bit with phpMyAdmin. Just do the following:
0. Backup Wordpress
Backup you WP database. Always, backup your database before going in for direct manipulation of WP data. You can get a whole lot of information by reading about it here.
1. Download Posts table using phpMyAdmin
Go to the phpMyAdmin URL for you WP installation’s database. You can do this by using the very useful WP-phpMyAdmin plugin. As shown in the following screenshot, select the wordpress database that you have configured from the dropdown menu. And then select the wp_posts table. This will refresh the frame on the right side to display the wp_posts table.
Now, we are going to export the posts table. To do this, select the Export tab –> check the Add DROP TABLE checkbox –> hit Go. See the screenshot below.
This will take you to a page that contains a textbox with an SQL script in it. Copy the contents of the textbox and save them in a file.
2. Edit the file
Open the file in your favorite editor. You will see the SQL Dump that contains a lot of queries. Now, run a regex replace query on the content using the regex
\[tags\].+?\[/tags\]
This should go though you posts and remove all strings of the type [tags]foobar[/tags]. Change the regex to suit the way you have declared tags in your posts.
3. Import the file contents into wp_posts table
Go to phpMyAdmin and click on the import tab. See the screenshot for reference. Browse to the path where the modified file is located and just hit Go.
This should upload the file contents and execute the SQL queries in the file. If it fails and you see an error complaining about SQL_MODE being set to NO_AUTO_VALUE_ON_ZERO, just add a “--” in front of the statement
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
to comment it out and then try to upload the file again. If things work out fine, you will see a message that says something like “X queries were successfully executed“.
There you go, you are done, If you check the posts contents now, you will not see the tags information. And no need to use any plugins to explicitly manage these tags anymore. Though I do suggest using Simple Tags to gain more control over your tag management.
HemingwayEx 1.5 Final
I finally got myself to fix some more bugs and add a couple of new things into the HemingwayEx Wordpress theme. I received a few suggestions on features that could be added and after thinking about it a bit, I add some more things to this theme. This will (99.99%) be the last update of this theme coming out on my website. I have been intermittently updating this theme over the last year & a half and now I feel it’s time to move onto something else.
This update includes the following changes:
- A new CSS with Black, Blue and Gray colors.
- Added support for Paginating the homepage
- Added WP Gravatar API into the comments. You can turn it on/off using WP->Settings->Discussion page.
- Updated the theme to start using js included in WP itself.
- Removed support for Hemingway blocks. Now, this theme only works with Widgets.
- Fixed a few bugs reported by Thomas regarding the search page.
To get the theme go on over to the HemingwayEx download page.
It’s been a lot of fun working on this theme and I thank everyone who has used this theme and written to me about it.
Hindustan Times BETA
I read Hindustan Times regularly to keep up-to-date with happenings back in India and recently I noticed that they were coming out with a new site design and layout. Today they seem to have made the Beta version the default on the site. If you read other newspapers online, it wont take much of an effort to see that the whole redesign of HT is inspired from NY Times.
Inspired from NYT ? it’s more like HT is a carbon copy of NYT. Starting from heading, navigation, content layout to fonts, everything seems a lot like NY Times. It’s just that HT is a bit more colorful, something that we Indians love, and there are a lot of advertisements (which I successfully block using Adblock FF ext.).
Folks at HT should give some sort of credit to NYT at least… Here are the screenshots of the two sites:
Introducing HemingwayEx for Wordpress
Posted by Nalin in Applications, WWW on February 18th, 2007
Finally, after quite a bit of tinkering with the Hemingway theme, I have come up with HemingwayEx, an extension of the Hemingway wordpress theme. It’s sort of a beta release as I have only tested it with Wordpress 2.1 Ella and CSS support is mainly for Firefox. I have added quite a few new features, which makes it very different from other themes built on top of Hemingway, but it still preserves the essence of the original Hemingway theme.
I would love to hear from WP bloggers who give this theme a try. You can learn more about HemingwayEx here.
Google Suggest
Posted by Nalin in Applications, WWW on January 18th, 2007
It’s no big deal… and I am sure many out there wont even know what Google Suggest is ! For the noobs… Google Suggest is a service which assists users in searching by incorporating AJAX. As you type your query, it suggest what most other people are searching for; basically the most probable matches to what you might want to query.
I use Firefox all the time and there is an add-on Customize Google, that makes all Google search boxes work like Google Suggest. It helps me save a lot of time by helping form my queries better.
Anyways, I wrote this post to tell that now if you type the string “nalin ma” in Google Suggest, it shows my name as the probable words that you might be looking to search for.
Orkut Communities
ok… first off… let me confess my love for Orkut… a great social networking place… where I get to network with ppl the way I like it…
Anyway… so I was going to write about communities… I currently have 43 communities that I am a member of… and I own one of them… use these communities not to interact with like minded people… These communities are here to allow people, who visit my profile, to get more information about me.
You can get to know a lot about a person, just by seeing the communities that they are a part of…
here’s a list of communities that I have added till now…

so… what do you get to know about me from this list ??
- I have studied at UIC, ITM, AFGJI, Kendriya Vidyalaya, APS, Army School etc etc… and passed out of AFGJI in 2000
- I have stayed in or currently am in Chicago, Delhi, India
- My Birthday is October 10th and I am a Libran
- I am from the Computer Science background and use Linux as one of my operating systems and I like programming
- I am a JAT !!
- I come from a defense background… more specifically from the Indian Air Force
- I like watching Friends, The Simpsons, South Park
- I read Dilbert and PhD comics now and then
- I am lazy and I waste time
- I love drinking Beer and Vodka and eating Maggi noodles
- I have some sort of a messed up attitude
- I love listening to Pink Floyd, Nirvana etc.
Isn’t that a lot of information ??
WEB2DNA Art Project
Nice application… see the DNA of my website.
Area Code Search
I have been applying for jobs lately and every now and then I get calls from recruiters. Sometimes when I miss these calls, all I see is a 10 digit number without any idea of where the call came from. Yes… yes.. people do leave voice-mails, but at times they are not enough…
So… I just searched a bit and found that there are many sites providing this service. Two that I really liked were
- Number Administration System
- Phone Location Lookup at MelissaData
Good service… comes in handy every now and then…
I got suckered… :-(
A nice (well… no more…) friend of mine sent me a link http://www.geocities.com/joke_of_the_day_3_4/ . I unlike usual, followed that link thinking that it was what it said.
What you see there is a Login Page for using the Yahoo! Flickr service. I didn’t understand why it was there, but cause my brain wasn’t working after studying for hours, I simply put in my login and password. And guess what ??? I got suckered… It took me to some weird page…
Then I realized what a dumb thing I had done. I actually mailed my login and password to someone sitting in Japan. Had to kick myself for a while and then change passwords for all the accounts that had the same password.
Going though the page source I found that the email address getting all this info was accountshere_2@yahoo.com. Guessing by that, I am sure this nice human being has more such pages set up. Also saw that (s)he is using a CGI script hosted at www2.fiberbit.net. Checked the WHOIS Db and found it is registered to some F Bit Communications Corp in Kyoto, Japan. Anyways… have sent a few nice words to the email address above… X-(
Just to show what how the whole thing works… I have copied the source and you can goto it here on my site. I have changed the form a bit. Just enter any email (full email, not just the user-id) in the username textfield and any text you want in the password text field. After hitting submit, you can go and check the email address you provided. You will see the exact info that you provided.
I feel like such a jackass right now… Having spent almost all my time for the last so many years online, I still fell for this one… People around the world, keep getting suckered every freaking day… one really has to be very careful while browsing the www. It’s a bad bad world out there. I did go ahead and fill up a form on Yahoo! to let them know of this page. There’s a lot of shit on Geocities and Yahoo! isn’t doing anything about it… this and the fact that it took me sooo much time to find that General Abuse Form, really pissed me off.
UPDATE: my friend didn’t send it. I got it as an offline, so I assumed that he had. It is actually some sort of a virus… I am sure many people others got it too then…
ANOTHER UPDATE: Got a reply from people at Yahoo!. They have taken the necessary action, i.e. removed the site within 3 hrs of notifying them… hmm.. nice..
Thank you for informing us of possible abuse on Yahoo! GeoCities. We have investigated the site and taken the necessary action. We appreciate your concern and thank you for reporting this incident to Yahoo!.
You can still see what the page was like here.



Azureus – Java BitTorrent Client
Get Firefox
Add to Google
Add to My Yahoo!
Recent Comments