141

Add a PDF icon to anchor links

In your PHP code add the following line: $html = eregi_replace (‘<a href=”([a-z0-9./-_ ]+.pdf)”>’, ‘<a href=”\\1″ class=”pdf”>’, $html); And in your CSS file: a.pdf { background:url(../images/pdf_icon.gif) bottom right no-repeat; padding-right:40px; }

 

 

139

Best Global Search and Replace Program

I’ve been looking and trying out at least 7 different search&replace programs until I found PowerGrep for Windows. It is totally awesome, FAST and easy to use. Another program, Actual Search & Replace worked through my folder with ~250 files for at least 2 hours, and this baby is doing in less than 2 minutes! [...]

 

 

183

Batch update custom fields in Wordpress

If most of the pages have the same custom field values and need to be updated, going through each page manually would take long time. This can be done by running an update query directly to the database. This should be done carefully, of course. Steps: 1) Make a backup of the database. 2) Custom [...]

 

135

Sitemap Generator

This standalone sitemap generator script is really a timesaver, not only when it comes to creating sitemaps but also finding broken links and inspecting the site structure. It also keeps a log of changes – new URLs that’s been added and URLs removed from the site. I’ve been working on an enormous site recently and [...]

 

 

66

Gmail stopped working in iPhone after update

Ugh! It was so annoying. Here’s what fixed mine: – Delete Gmail email account from your iPhone. Settings -> Mail -> Account -> Delete Account – Reset your network settings. Settings -> General -> Reset -> Reset Network Settings – Add Gmail account again . Settings -> Mail -> Add account -> Other – Follow [...]

 

79

iPhone/iTunes "not authorized" error

If you see this error  saying “You are not authorized to install the apps” go to “Store” – > “Authorize computer” in iTunes and click on “Authorize”. This should fix it. I got this error when I installed the new update on iPhone and was trying to download apps from my work computer.