
Search In
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
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
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
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
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
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
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
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.
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
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
