Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Search In

How to disable csrf spring security 4

In spring security bydefault the csrf protect in on. As a result it asks for token during login and other requests. Although its not a good practise to disable the protection but we can do it. As we can see in the code below, http.csrf().disable() ,

How to make CSV File form array in PHP

Hello reader! If you have an array with the records and you want it to be download as CSV format. PHP has built in functions for making the format of CSV. Lets take the example below:- header("Content-Type: text/csv"); header("Content-Disposition: a

How to give a sliding effect(slide down and slide up) on a div using jquery.

We are using simple jquery to implement a slide down and slide up effect on a div. Also a little styling can be done using css and HTML. <html> <div id="divTest" style="width: 40px; height: 40px; display: none; background-color: #fff;">&

How to use different versions of Jquery on a single page

If you calling the different versions of Jquery then your code can clash the mutual variables. To use each of the Jquery versions separately you have to use " jQuery.noConflict()" Consider the links with multiple Jquery versions below:- <script

How to style checkbox using CSS

If you want your html form to look more beautiful than just the simple check boxes then you can use the following advance css. This will give rich looks to your html form by styling checkbox First on the html form create the checkboxes using the cod

How to find OS version from web browsers using PHP

Hello Reader! If you want to detect the OS version of user though the web browser. Then you can use the library code below:- <?php $OSList = array ( // Match user agent string with operating systems 'Windows 3.11' => 'Win16', 'Windows 95' =&

How to get color of image for the background using PHP

Hello Readers! If you are developing the dynamic website in which the image color will be the background color then you can see it doing in PHP :- <?php $filename = $_GET['filename']; $image = imagecreatefromjpeg($filename);

how to create islamic calendar (hijri calendar) using iOS sdks

Following code will return the today's date in islamic calendar NSCalendar *hijriCalendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSIslamicCivilCalendar]; NSDateComponents *hijriComponents = [hijriCalendar components:NSDayCalendarUnit

How to use NSMutableAttributedString

Hello Friends, NSMutableAttributedString allows to set different attributes(font size,font color) for different parts of the string. To use NSMutableString you may use the following code: //Create an object of NSMutableAttrinbuteString and assign it

How to make a simple file reader using Javascript

Hello Readers, If you developing the website to browse any file and showing its's content on the web page, Then by using Javascript you can do this as follows:- function readSingleFile(e) { var file = e.target.files[0]; if (!file) { return;

1 275 408
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: