WordPress security made easy !

2011
07.31

Do you know wordpress by itself has many loopholes and they are trying to fix it everyday .

And by adding more and more plugins you make the security even worse.

There are plenty of articles which are already available just by googling “wordpress security ”

So what I want to write about here is just to make you aware , if you own a blog check its security..
A loophole in your blog not only can bring down your blog but also it can leak out all the information regarding your passwords and the server itself.

Few links to read on :

  • http://www.noupe.com/how-tos/wordpress-security-tips-and-hacks.html
  • http://www.shareaschnitzel.com/how-to-secure-wordpress-wordpress-security/
  • http://codex.wordpress.org/Hardening_WordPress
  • ….. …. 100 s more

Now who has enough time to go all through these ??

I found something very useful in this case :

  • wp-security scan — Its a plugin that scans your wordpress installation against all the know security flaws
  • BulletProof security — Another plugin to fix all the issues found ..

So Simple using those two plugins and make your worpress secure in clicks.. !!

You can also find some help for security from :

Mudassir Malik

 

Backup !! critical ?

2011
07.25

Everybody knows that Backup is very important !!
But hardly anyone actually takes the pain to create backups. Yeah we all are pretty lazy and don want to spend time on something so UNPRODUCTIVE !!

Yes people feel that taking backup is actually a waste of time. Their theory is something like this– ” What is going to happen to a device that is settled inside a cpu , nothing is going to hurt and why to go through the painful procedure of backing up. ?” But let me warn you against one thing that electronic devices aren’t RELIABLE completely!! . They may fail at any point of time and leave you with painful emptiness !!

I also agree to people who say its a waste of time as well as money to take backup . Its not worth to spend an hour daily to take the back up of your data so that just once in 1000 days if it crashes you are safe , there is no point in wasting 1000hrs plus the money for a very small probability of failure . But I would also say backup is a must , you never know when your HDD fails and you are dead.

So there is a simple solution to this problem. I can guarantee that there are plenty of tools available to help you out in you backup and completely automate it. But most of them are paid . You can still search for plenty of free services.

Here I have got one for you.
Idrive !! (click here)

Its an online backup service , 5 GB free ( as on date ) .
Few things in IDrive that I feel amazed of :

  • Just right click and it will add the file/folder to the backup list
  • Fully automated , need only first time investment of 15 minutes
  • Each time it takes backup on the internet it backups only the changed file ( and not the complete set .. saving time and bandwidth )
  • Plus it doesn’t even upload the complete file that was changed ( say you changed one line in a 10 mb file … it will just send that one line to the backup server and not the whole 10 mb file .. amazing concept of DIFF )
  • You remember you want a file that you have deleted 3 days ago you can still get it back ..!!

Multiple upload in HTML5 – most AJAXY way

2011
07.24

Everybody must be aware that multiple upload is soon going to be supported in all the browsers by default.. No more flash needed to upload multiple files.
For those completely unaware I will take a small brief :
Earlier ( HTML 4 ) using the input tag for the web page the users are allowed to select only one file. Various solutions came up to support multiple upload. They were like (with the problems ):

  • Using JAVA applet ( you need java in you client machine..  Plus the days of applet are long dead )
  • Using multiple browse button with array within the input tag ( looks pathetic )
  • Using flash ( the way gmail , plupload etc  works But they use Flash and many devices do not support it)

Lets start with little bit of HTML5 multiple upload
First lets look at : www.w3schools.com/html5/tag_input.asp
It says “input” tag has a new attribute called “multiple” — Bingo!!
Now try this :

Doing this pretty simple just use :

<input type="file" multiple="multiple" />

One simple way that W3C suggests is to add the attribute – > multiple=”multiple”
But there are various problems to this :

  • It uploads all the file together as a single chunk of data
  • Therefore you have to wait until all the files are uploaded
  • There is no way for the user to get any response from server until all the files are uploaded.
  • Users may get frustrated and gives a bad UX

So Here I have another solution , ( please note you need to know little javascripting before you could attempt this )

  1. We have our normal form with an input field ( with multiple attribute ) named “form_main”
  2. We create another form and and name it “fake_form” (no multiple attribute ).
  3. Then we use form_main’s onchange function to do the upload.
  4. Now we get each file from the “form_main” in the javascript
  5. we use the “fake_form” to create “FormData” object and then assign the file to that form.
  6. We use AJAX to send the fake form .
  7. we do the same step for all the files.
  8. While using Ajax you can tell what should be done after tha ajax request is complete.

Here are the code snippets to help you out :

Main_form :

<form action="/some/url/to/server/script" enctype="multipart/form-data" id="main_form" method="post" >
 <input id="file_main_input" name="name[]" onchange="handleFiles(this);" type="file" multiple="multiple"/>
</form>

fake_form :

<form action="/some/url/to/server/script" enctype="multipart/form-data" id="fake_form" method="post" >
</form>

javascript:

function handleFiles(obj)
    {
    //do sometheing to hide your main_form give some animation , use jquery
    FileUpload(obj.files,0)
    }
function FileUpload(files,no) {
    // do some checking in case you need like files[no].size or files[no].type
     var data = new FormData(document.getElementById("fileinfo"));
          var xhr = new XMLHttpRequest();
          data.append('extra date',variable)
          data.append('add as much extra data as needed',var2)
          xhr.open("POST", "/some/url/to/server/script",true);
          xhr.send(data);
          xhr.onreadystatechange = function() {
            if (xhr.readyState == 4) {
              var str=xhr.responseText.toString()
              // now do something with your response that you receive I generally prefer to return javascript for server and so I do an eval
              eval(str)
            // Now upload the next file
            if(no<files.length-1)
            {
              FileUpload(files,no+1)
            }
            }
          }
    }

 

Note this method is not supported By IE ( always a pain ) and even opera for some reason.
Works greate with the rest of the browsers.

Post a comment if you have any queries

Create online forms , surveys in minutes for free

2011
07.22

There are plenty of services available online to create surveys

and even more.

I like formstack because of its amazing UI . But both of them are paid services . Ofcourse you can have a small set of features for free but there are plenty of problems in surveymonkey you cannot store data into a tabular format ( in free plan) you’ll only receive mails , in formstack you can store upto only 50 entries.

 

So here a simple solution

  1. Log in to docs.google.com
  2. Click on the button create -> Form
  3. And from then its simple..
  4. Enter your form title etc
  5. Add the fields you want..You have various options like check boxes , select etc.
  6. Then finally save .
  7. At the bottom you would get your form URL  , But the url seems to large to be remembered.
  8. Use bit.ly (or some other url shorten service ) and then shorten your url.
  9. Go to your docs.google.com page and then you can see a form file has been created that you open to see the responses.
  10. Now you are done creating your own survey form . Happy surveying

 


3 visitors online now
0 guests, 3 bots, 0 members
Max visitors today: 4 at 01:04 am IST
This month: 10 at 05-03-2013 07:50 am IST
This year: 24 at 04-04-2013 06:23 am IST
All time: 57 at 12-31-2010 07:10 am IST
SEO Powered by Platinum SEO from Techblissonline

Switch to our mobile site