
Search In
In some of the devices while uploading/adding new image into media are not shown to the custom gallery view. However this does not seem to update until the device reboots. To update your custom gallery with new images, below few lines of code will he
Network Layer Protocols
While sending or receiving data there is lot of things happens at the background. We call that things a set of rules commonly called as protocols.
Address Resolution Protocol(ARP)
While communi
Script File in Android
While building android application we have situations where we want to post data onto the server. Sometimes we need response from the server and based on that response action will be performed.
For doing that we will create s
// A C++ program for splitting a string using strtok()
#include <stdio.h>
#include <string.h>
int main()
{
char str[] = "First-Demo-Example";
char *token = strtok(str, "-"); // Returns first token
while (token != NUL
Program to check two Linked Lists are Identical or not in C.
#include<stdio.h>
#include<stdlib.h>
/* Structure for a linked list node */
struct node
{
int data;
struct node *next;
};
/* Returns true if linked lists a and b are ident
For the past few decades, the power of technology has reached a high point. Due to the internet, VoIP phone systems have almost replaced their previous analogue predecessors. Today, it is almost impossible to find a small or medium business still usi
Shortcodes are the power of the wordpress. You can simply create shortcodes and call it via the do_shortcode function or on pasting it on editor. For adding a shortcode, you ned to use the hook add_shortcode. We are going to share the script for shor
Well, in Java technology an int is a primitive type while an Integer is an Object or wrapper class. Meaning, if you made a new Integer:
Integer integerObj = new Integer(6);
You could call some method on integerObj:
String str = integerObj.toStrin
Read Single Line: fgets()
To read a single line from a file fgets() function is used.
For example: Suppose we have a file 'demo.txt'. The script given below results the first line of the file:
<?php
$filename = fopen("demo.txt", "r") or die("Un
FOREIGN KEY
Foreign key is used to setup relation between two tables in a database. A foreign key is a values that appear in both the tables in database system.
The table which contain foreign key is called the child table while the table to which
