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

Search In

Ajax Call using Jquery

To call ajax you need to execute the following code: $.ajax({ type: "POST", url: 'pagename.php', //location of the server data: varData, //data send to the server succes

how to stick posts to their respective posts in php&mysql

Guys im trying to join a comments table to posts table using the following query in a method. public function feedView($session,$friend,$updateid) { $sql2=" select u.update_body,u.author,u.time,u.title,u.account_name,u.upd

How to detect a mobile device in jQuery and javascript?

Using jQuery you can use the following code: $.browser.device = (/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase())); This will return "device" for all devices. You can use the below code snip

How to cut a String in C#

String.Substring :-To remove characters from begining use like this:- string a = "India"; string sub = a.Substring(0, 3); // Here 0 means from which character you have to start cutting. Index will start from 0 // 3 means how many character you wa

Split a string in C#

How to split a string Suppose I have a string "I love Programming" and I want to get all the words seprately. Here is a simple example:- string a = "I love Programming"; string[] words = a.Split(' '); // We pass the value inside '' on the basis of

How to redirect console logs to a file

To redirect the log statements to a file instead of console call the following function at the start of function applicationDidFinishLaunching. - (void)redirectConsoleLogToDocumentFolder { NSArray *paths = NSSearchPathForDirectoriesInDomains(NSD

How to copy image in NSPasteBoard

To copy the image on NSPasteBoard following code can be used: - (IBAction)paste:sender { NSPasteboard *pasteboard = [NSPasteboard generalPasteboard]; NSArray *classArray = [NSArray arrayWithObject:[NSImage class]]; NSDiction

Integration testing methodologies

The are two approaches of integration testing: Big Bang approach Incremental approach a. Top down approach b. Bottom Up approach c. Sandwich approach Big Bang Approach: In Big Bang approach, all the units are integrated together and then tested.

Enable gzip via htaccess

mod_gzip_on Yes mod_gzip_dechunk Yes mod_gzip_item_include file .(html?|txt|css|js|php|pl)$ mod_gzip_item_include handler ^cgi-script$ mod_gzip_item_include mime ^text/.* mod_gzip_item_include mime ^application/x-javascript.* mod_gzip_item_exclude m

How to create a Live Wallpaper

Follow the below steps to create Live Wallpaper create a xml file which will describe your wallpaper screen. edit manifest file and add service code create a service class which extends WallpaperService class create xml folder inside res folder

1 59 320
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: