Access Denied error in MAMP mysqlcheck

Ever since I moved to MAC, I’m using MAMP for local development. I’s  getting a annoying error message whenever I’d start MAMP in my machine something like ‘Unable to access Mysql for user root with password’. I decided to end this today. Here is the way to get rid of this.

Screen shot 2011 03 10 at 9 22 59 AM

Continue reading Access Denied error in MAMP mysqlcheck

Offline Blog Editors for Mac

I’m so obsessed with offline blogging tools. I just for some reason can’t use the browser based editors. I’ve been trying to find some blogging editors for exclusively for Mac. I thought I’d share my thoughts and experience about that. Probably it may help someone to find one. Let me start with the free one.

Continue reading Offline Blog Editors for Mac

Kill a list of processes in unix in one go..!

Just thought would share it here. I just wanted to list of processes in unix in a single go. After trying some of the syntax I got it right. Here it is…

ps -aux | grep -i "test" | awk '{print $2}' | xargs kill -9

Bit of explanation below :

ps -aux –> Lists all the processes running in the machine in the below order.

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND

grep -i “test” –> filters all the row containing word ‘test’ in this case. Here you can change anything you want to filter or kill..!

awk ‘{print $2}’  –> Prints the second column i.e the PID (process ID)

xargs kill -9 –>  Passes them as arguments to the kill command. -9 is the ‘force kill’ signal.

Hope it helps someone looking for this. Do share if any better way of doing this.

Email Validation in PHP

Many times, we need to validate an email, the end user enters in our web data forms. If you business operations depend heavily on email (atleast as mine does), verifying & validating the customer data becomes a nightmare if you don’t validate the email input properly. Continue reading Email Validation in PHP

Implementing Output Caching in PHP – Solve Perfomance Issues

Cache by definition is transparent storage where results can be stored, so that the future requests can be served faster. With the amount of data handled ever growing, and the necessity for caching has become unavoidable in any decent size web application. In this series, I’d try to bring out various alternatives available in PHP for efficient caching.
Continue reading Implementing Output Caching in PHP – Solve Perfomance Issues

Configure Airtel GPRS / Edge in HTC Hero in India

Couple of weeks back I reset my HTC hero to factory settings. When I restored the contacts & applications, I forgot to set up my phone to use mobile network (edge). It completely missed out of mind as I’s always in a wifi zone! Continue reading Configure Airtel GPRS / Edge in HTC Hero in India

Twitter new UI – What is there..

Finally It’s arrived, the new UI for twitter. It’s more than 2 years looking into the same UI with no life other than the ever moving tweets on the screen. On Tuesday, the CEO unveiled the new user interface. Twitter claims the new UI to be more advanced and improved in terms of usability. It also believes, this move would bring in lot of traffic / visitors to twitter.com. Continue reading Twitter new UI – What is there..

Waka Waka Lyrics

You’re a good soldier
Choosing your battles
Pick yourself up
And dust yourself off
And back in the saddle

Continue reading Waka Waka Lyrics

Offline Blog Editor for Ubuntu

I’s just struggling to get a good replacement for Word 2007 as my offline blog editor in Ubuntu. I googled and found several alternatives. Finally, I settled down with the Bleezer. I just thought let me write about the same here as the first post from Bleezer. Continue reading Offline Blog Editor for Ubuntu

Back after almost 400 days…

Lot have changed…even I’ve grown physically, mentally & professionally… I couldn’t write because of various reasons and one big reason.. I’ve grown lazy. I moved my blog from markishonline.com to markish.in as well. Hopefully I start writing again. I wish I could.