403 error in opensuse while using htaccess files

Configuring url rewriting in apache 2.4 in opensuse might not be that easy after all. First you need to follow these set of instructions. This will work perfectly for older versions of apache. But getting them to work for apache 2.4 might require a bit of extra work. In this post we will discuss how […]

Read doc and docx files in Cake php

This post is intended to provide a reliable way to read the contents of .docx and .doc files. The content can be imported as html and inserted in ckeditor or any other such tool for further processing enabling users to edit the contents and save them. The contents are read from the doc and docx […]

Preview an image before uploding using javascript

While creating html forms, most of us include an input field for uploading files. If the type of file to be uploaded is image, it would be great to allow the site user to preview the image before actual upload. This can be achieved by using javascript’s File reader.   Html markup And the corresponding […]

Install broadcom wireless drivers in Open Suse

Most of the new laptop hardware are supported by opensuse, thanks to increasing collaboration between developers. However, some of the older machines, particularly those having older broadcom chipset struggle to get there wireless device working under linux. This post contains basic instructions about how to Install broadcom wireless drivers in Open Suse 13.2, but should […]

Dynamically make DOM element height equal

Most of the time we encounter a situation where our layout is disturbed due to uneven heights of the divs, spans or other elements having varying amount of content. This causes them to have variable height which in turn results in broken layout. A quick and simple fix for such problem can be adjusting the […]

Reset password email in wordpress

Setting a nice mail template to the outgoing mails from your site is really a great idea. It not only makes the email look better, but also gives a professional touch to the content. However, sending reset password email in wordpress by using html content type is most probably going to land you in trouble […]

Fixing Grub

Often there is need to repair the GRUB ( GRand Unified Boot ) loader after various operations in linux installations, particularly after installing windows for dual boot or re sizing the root partition of linux. For fixing grub, you need to have a bootable live cd or usb installation of your linux distro or (preferably) […]

Regular expression for email validation

In this post we are sharing a regular expression to validate email address. In this example, we have used jQuery to test the email, however it can be used in php as well ( expression ).

1 2 3 4