Remove All Comments From WordPress Blog

If your website blog has been spammed by too many comments to delete from inside wordpress admin you can delete the comments directly from the database. Please backup the database if your not sure what you are doing, then follow these easy steps:

Enter you Cpanel, Click myPHPadmin (in databases) a new window will open.

Click your wp database name from the left sidebar, click SQL from the top tab menu.

Replace the query string with:

DELETE FROM wp_comments WHERE comment_approved = 1

Click GO, Confirm and your done!

Opening a link in a new window on page load.

Normally you would use a meta redirect, but it is not possible to open a link in a new window with this method.

Use this code after your<body> tag in your html document:

<script type=”text/javascript”>
window.open(‘http://www.yourlink.com/’);</script>

The Weather Has Taken Over, Planes Diverted!

Views of garden, photos stiched together using photoshop cs5. Click to see super hi-res.

click to see super hi res

Gardens covered in snow. Plane Diverted, Mum and Aunty in Germany lol

£99 laptop: Asus 901

I love my Asus 901,  I paid £107 including postage for a 2mb 16gb sdd model on ebay.  I’ve seen them selling for as little as £89 (1mb 12gb models).  Considering they sell new for around £250 new 2nd user Asus 901′s are incredible value.

My Asus 901

It has a huge six hour battery life, plays full screen video/sopcast (i’ve watched live football and cricket on it recently).  It also has a VGA monitor out, so you can output to a larger lcd screen or projector.
Mine came with windows XP (alternate is the Linex model which has 20gb SSDs – Solid State Drives).  I have since wiped off XP and installed Windows 7 Ultimate! Now Its part of our homegroup  I can copy files from my desktop PC directly to the Asus and vice versa.
It has 3 USB ports, a network port, mic, headphone, and k socket.  It has a 1.3 mega pixel webcam on the screen lid top, bluetooth(to which i connect my mobile phone for transfering music/pictures/texting via keyboard).
It has an Intel Atom  N270 processor running at 1.6mhz.  You have the option of upping that to 1.8 mhz via the taskbar tray for super high performance, or 1.2 mhz for battery saving.
I would recommend the 2gb model with 20gb ssds.  Get as much bang for your buck as you can.  Since you have to remove the 1gb memory module and replace with a 2gb your better off buying it pre-installed.
There is no conventional hard drive in these! The 901actually has 2 ssds, one 4gb super fast primary drive for holding the operating system, and a larger 12gb or 16gb drive.  SSD is flash storage similar to memory in usb sticks, so no moving parts, silent and cool.  I bought an additional Transend 16gb class 10 SDHC card that fits inside the card reader (from www.mymemory.co.uk) for £20, giving a total 32gb storage, 28gb usable after installing w7.

Up and running windows 7!

The screen size is 8.9” from corner to corner and supports a maximum resolution of 1024×600.
In summary this is a fully functioning notebook/laptop.  Great for travelling, reading ebooks/mags, watching video, listening to music, and most importantly surfing the Internet. You may think ‘o, its only got 20gb’ – but when you are connected to the Internet you have the whole www at your fingertips, why would you want to carry around a hot noisy hard drive?

Get 11% interest on £1000 trick

If you have a spare £1000 saved you can earn £110 plus £150 in bonus this year.  Probably alot better than the 2.5% (£25) your currently getting from your saving account.  Here is how:

Halifax will pay you £5 every month for paying £1000 in to their current account.  www.halifax.co.uk
Now Santander pay you 5% (on upto£2500) if you pay £1000 in each month to their current account.  www.santander.co.uk

So the trick is to setup standing orders betweeen both accounts, the £1000 pings between both accounts each month. 

Set up two standing orders between the accounts (easily setup online) : 1st from the Santander account (where it stays most of the month as they will pay you the interest),  transfer to the Hallifax account, leave three days for it to enter the account, then return it back to the Santander account with the second standing order. 

You can earn £185 from £2500 savings using this method.  £60 from Hallifax,  £125 from Santander.  That works out to 7.4% interest on £2500.

Or earn £110 from £1000, £60 from Hallifax, £50 from Santander, working out a whopping 11% on £1000!

Additionally you can “transfer”  from your existing accounts,  you will also get £50 and £100 one off bonuses.

Free Nectar points for using Yahoo search toolbar.

nectar

Get up to 50 points per month for using searcher toolbar.  Great if you shop at Sainsbury’s.  Im saving up for a round the world cruise :) ETD: 2024!

nectar.com/collect/toolbar/home.points

How it works:  you install the addon for your browser, enter your nectar card number, and the points get added automatically to your account, you can check them online.

I disable the toolbar after i reached the max 50 points ;) Tools>Manage Add-ons, as it does slow the browser down a touch in IE8. 

You can also disable the flash/shockwave plugin there if you dont want those cpu hungry ads slowing your working day down.

Making “404 page not found” redirect to your home page

404
If you want any broken links or missing page requests (404 page not found) to be redirected to your home page you can add a line of code in your cpanel.

Login to your cpanel,  go to advanced, error pages,  select your domain, select 404 (not found),  copy and paste the following code into line 1, hit save, your done!

<meta http-equiv=”Refresh” content=”0; URL=http://nadeemx.com”>

you can also do the same for the other 4 error pages:
400 (Bad request)
401 (Authorization required)
403 (Forbidden)
404 (Not found)
500 (Internal server error)

You will now never lose traffic due to google/other sites  linking to pages you have deleted, or renamed.

For WordPress you need to edit your 404.php to redirect to your home page.

In wp-admin>Appearance>Themes>Editor by wrapping the below code inside  ”<?php                       ?>"

header(“HTTP/1.1 301 Moved Permanently”);
header(“Location: “.get_bloginfo(‘url’));
exit();

give by clicking http://www.freerice.com so you dont feel so bad when you stuff your face at lunchtime

www.freerice.com
www.freerice.com

Feed the hungry.

Send Blog Post To Facebook and Twitter Automaticaly! F@#% me It Worked!

nadx_icon1
This is a test post from my blog www.nadeemx.com using a plugin that post to my twitter and facebook automatically. 

If any of you would like a blog setup like this please feel free to contact me.  I work for beer and pizza.

F*#% me it worked!

FTP with no FTP Client!

Not many people know you can use  Explorer that comes with Windows, (not Internet Explorer) to upload files to your site. Its alot quicker to login,  and the opened folder window acts like a regular windows folder!  You can rename/delete/move/copy files as you would normally on windows.

Click Start Bar, Select RUN, then type “explorer”  and hit Enter.  Then in the  address bar of Explorer type:
“ftp:// password:username@domain.name” (no spaces) then hit enter.  Windows will load up the files on your ftp server in a regular fashion.

the format is

“ftp:// p:u@d” (no spaces)
where u=username, p=password, d=domain url
e.g. ftp:// abracdabra:nadeem@domain.com

Obviously change to your specific details. Its now possible to drag and drop files directly into your ftp server space from any local folder on your pc! 

If you regularly want to access your server with a shortcut on your desktop, make a new network place by double clicking the “My Network Places” icon, and click ADD NETWORK PLACE. 

This will bring up a dialogue box, click Next until your prompted to enter the network address.  This is where u enter the ftp address.  ie ftp://domain.com. Click Next, uncheck the log on  anonymously box.

Now you can enter your username.  click next and you will be asked your password every time you double click the new network place icon you just made.

Alternatively you can enter your username as

password:username

This will login automatically when u double click the new network icon.  Make a short cut onto your desktop for easy access.  But be aware that anyone with access can login to you ftp space by clicking this icon.  Also the explorer window will remember the address string in its cache.  Clear it if your on a public computer.

UPDATE FOR WINDOWS 7:

Its a similar process, click start>computer, click map a network drive, connect to a website that you can use…. enter ftp path and username password.