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

Restart MySql on linux server through command

To restart MySql on Linux server through command prompt follow the below steps - i) First go to root through - "sudo -i " ii) Then use the below command - "service mysqld restart"

Saving an image into SDcard in Android

Sometime we need to save images on SDcard that we click or get from server in many applications, and you can do it very easily by using the below code. To save Images on SDcard on Android Device, write the following code: ByteArrayOutputStr...

How to rotate a image with the help of css

Image rotate with the help of css3 Animation HTML <ul> <li><span><img src="img/left.png"width="20"height="20" /></span></li> </ul> css nav ul li span.animate{ ...

Set column name for auth component of users table

When we use Auth component for login in cake php then we are restricted to use 2 column in users table 'password' and 'username' .If we want to use our own column name then follow these steps: Step 1: Include the below function in YoursController...

Basic understanding of MVC application

In the MVC application we have architecture with three main directories Model, View and controller. These sections are as follows: Model: It contains the models or classes that we are going to use in our application. For eq. Person.cs class wi...

In cakephp different session timeouts for admin and front end users

In cakephp you can handle different session time outs for admin and front end users.I added the following lines in core.php file and it works for me. if(strripos($_SERVER['REQUEST_URI'],"admin")) { Configure::write('Session', array( 'd...

How to get Cookies from UIWebview

The following code will get the cookies form the sever and will store in the array. Get the appropriate cookie from the array by its name. - (void)webViewDidFinishLoad:(UIWebView *)webView { NSHTTPCookieStorage *storage = [NSHTTPCookie...

Send iOS App request on Facebook in iOS

In terms of publicity or advertisement of an iOS app there is a feature where we can make our iOS app social or can share on facebook. Accepting a request from a app will direct the person to the Canvas Page URL of the app that sent the Request....

Types of Regression Testing

Regression Testing Re-executing the old test cases across multiple releases or built to make sure that changes or bug fixes has not affected the existing functionalities is known as regression testing. Whenever some code changes or bug fixe...

Problem with required feed url fields in feeds importer

Feeds module provides functionality to import contents from feed urls. We can setup feeds module according to: https://drupal.org/documentation/modules/feeds There are 2 ways to import feeds 1: attach to any content type 2: Use a sta...

Different location manager delegate methods of iOS 5 and iOS 6

The delegate method iOS 5 used was as follows -(void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation This delegate method used to access two locations name...

Why the Name Selenium?

Primarily, Selenium was created by Jason Huggins in 2004. An engineer at ThoughtWorks, he was working on a web application that required frequent testing.It came from a joke which Jason cracked one time to his team at that point of time another a...

NVL fuction in Oracle

NVL function helps you convert a null to an actual value. Syntax:- NVL (expr1, expr2) In the syntax: expr1 is the source value or expression that may contain a null expr2 is the target value for converting the null Guidelines for N...

Make a good design

1. Have a professional logo--and link it to your home page. "Your logo is an important part of your brand, so make sure it's located prominently on your site. "Use a high-resolution image and feature it in the upper left corner of each of your p...

Access restriction: not accessible due to restriction on required library

When i was working on a class i have got the following error.. Access restriction: The type BASE64Encoder is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\rt.jar I resolved it by looking up on google, ...

How to make group by query in MongoDb

Making a group by query in traditional database like MySQL,MySQL etc in quite easy but when its come to NoSQL like MongoDb we have to twist it a bit to get result we want : There are two ways in which you can do group by in MongoDb : a) Usi...

Sample application of diffrent types of Android Animations

In this sample application you will find different types of animations. For example :- Bounce, Fade In/out, Blink, Sequential Animation etc. If you want to use any animation in your app you just have to add that particular piece of code in your ...

Synchronization in QTP

When you run a script in QTP , then it may be possible that application may not respond with the same speed of script. Synchronization is the process of adjusting the time gap between script speed and application speed . Method that can be imple...

Sample Barcode Scanner Application

Here is a sample code of simple **Barcode Scanner** app. Barcode scanner library is attached with this project you just have send an startActivityForResult to open Scanner like this. Intent intent = new Intent(getApplicationContext(),Captu...

How to Make A Simple Concept Design for Chibi Character

Chibi is a simple, cute form of Manga/Anime. Super Deformed or SD is another name for chibis.Super deformed or SD is a specific style of Japanese caricature where characters are drawn in an exaggerated way, typically small and chubby, with stubby...

Sending Mail in Joomla

Sending mail in Joomla is easy. It can be done by posting the value of form in view to the controller.php of that component. Function that can be used is function mail() { $fromname = JRequest::getvar('name'); $sender_mail = JR...

How to create script in Jmeter?

Steps for Script Creation in JMeter 1.Right Click on Test plan-> Add Thread Users-> Thread Group 2.Right Click on Thread Group->Add Logic Controller->Transaction controller 3.Thread Group-> CSV Data Set config 4.Thread Plan-&...

SDWebImage Framework integration issue in Latest xCode

Download and Add framework Step 1: Download and unzip the lastest version here: SDWebImage.Framework Step 2: Right-click on the project navigator and select "Add Files to "Your Project": In the dialog, select SDWebImage.framework, and chec...

Refine Edge use in photoshop

Using a selection tool to cut an particular image portion in photoshop we are going to use refine edge to modify the selection so that we can use it in a better way. For this first we need an Image. Open it in the photoshop. Use the Brigh...

jqGrid with asp.net MVC

To bind jqGrid with asp.net MVC please see below steps. step 1: Download latest jqGrid from http://olex.openlogic.com/packages/jqgrid/ http://www.trirand.com/blog/?page_id=6 step 2: Add downloaded folder into your project's Script fo...

Cool widgets in OpenERP

Widgets are the GUI elements that can perform some controlling tasks. In OpenERP, we can see a few of widgets that have significance in the views like statuses of the any process, seeing states of an object, or getting lists out of huge data, or ...

Create photos album on Facebook sample code in iOS

Creating Photos album and uploading photos into the album. Two methods mentioned below creates album and uploads gallery pic on Facebook. /*========================================================= // Here we request connectin for creating ...

Fetching all pending orders in Magento

Fetching all pending orders and customer details in magento <?php $orders = Mage::getModel('sales/order')->getCollection() ->addFieldToFilter('status', 'pending') ->addAttributeToFilter...

Diffrent types of signUp pages in android

Signup tutorials for the beginners. In this tutorial you can see different types of signup pages in which date of birth is included , Signup using Facebook and other options as well for android. You can add this code in you application to get the...

Creating products with custom options in Magento Programming

we can create products with custom options by programming in Magento follow the steps : Create a form to submit all mandatory details to create a products Post all details to form controller to save product public function saveproductA...

Custom Login Activity

Two Login Samples First Sign Up Sample for Username and Password . Second Sign Up Sample for Email and Password. Use the zip file and check the output . Hope the code helps you Thank you.

Import Facebook friends list using Facebook SDK in iOS

Facebook friend list import became easier after using latest Facebook SDK. Here is the method which imports friend list. Steps to follow:- Create App in your Facebook account or open (https://developers.facebook.com/apps?ref=mb). Go to A...

Import Facebook friends using custom UI in iOS

Facebook friend list import became easier after using latest Facebook SDK. Here is the method which imports friend list. NSMutableArray *arrfriendList = [[NSMutableArray alloc]init]; [FBRequestConnection startForMyFriendsWithCompletionHandler...

How to Create Animation in Android

How to create basic animations in android : In this blog i will show you how to create simple shake animation in android.First create a anim folder in res/anim in the android project. Create a xml file in it sopy the following code in it ...

Login with Facebook sample code for iOS

Facebook Login Button to logged into the iOS app, here we are getting logged into the iOS application using Facebook login button. Steps to follow:- Create App in your Facebook account or open (https://developers.facebook.com/apps?ref=mb)...

Login with Facebook using custom login button in iOS

Custom Facebook Login Button to logged into the iOS app. Now a days most of the iOS apps provides "Login with Facebook" feature. Facebook also provides SDK for iOS platform, here we are getting logged into the iOS application using Facebook cred...

How to create a Sticky Menu bar with CSS and Jquery

In this example, we will create a simple webpage that consists of the header, the navigation and the content. <div class="wrapper"> <div class="header"> Header </div> <div class="nav"> ...

Box-shadow effect using css3

Hello readers ! This blog show how you can use shadow effect using css3. CSS :- body { background: #F2F2F2; color: #999; padding: 0; margin: 0; } .container { width: 820px; margin: 10px auto; padding:...

How to validate that string is email address or not.

During User registration it is very necessary to check that entered email id is valid or not. To check that following code will help you. - (BOOL)validateEmailWithString:(NSString*)email { NSString *emailRegex = @"[A-Z0-9a-z.&#95;%+-...

How to use search bar in UITableView

This is very helpful, if you want to use search functionality on UITableView. Code for ViewController.h @interface ViewController : UIViewController<UISearchBarDelegate,UITableViewDataSource,UITableViewDelegate,UISearchDisplayDelegate&g...

Very Useful Tags in OpenOffice Reports

Here are some important very useful tags that can help you definitely while creating various kinds of reports: [[ repeatIn(objects,'o') ]]: To add loop on the object selected, example [[ repeatIn(objects,'invoice') ]]. [[ repeatIn(o.invoic...

How to save and access value from NSUserDefaults

NSUserDefaults is very useful, if you want to save less data and want to access that data whenever you open the application. This data does not delete even after closing the app. To save data in NSUserDefaults NSUserDefaults *usr = [NSUser...

To perform a real-time capture

To perform a real-time capture, a client may instantiate AVCaptureSession and add appropriate AVCaptureInputs, such as AVCaptureDeviceInput, and outputs, such as AVCaptureMovieFileOutput. [AVCaptureSession startRunning] starts the flow ...

Creating Search View in Openerp

Search views are very useful when it comes to exact data requirement. In OpenERP we can create such views very easily and quickly, just adding the few line of code in your view. You can add as many fields you wish and add buttons that do some sor...

Solution for Invalid Object ID in MongoDb

We usually have this kind of error while making query with mongodb "Uncaught exception 'MongoException' with message 'Invalid object ID'" , the main reason behind this kind of error is that :-> a) Id string for mongodb must be 24 hexadecim...

Create pie chart using jquery highchart and asp.net mvc

To create pie chart in asp.net MVC using jquery HighChart. step 1: Include latest jquery.min.js in your page. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> st...

How to create profile page hiding controller and action name in yii

How to create profile page hiding controller and action name in yii In url manager add this line '<username:\w+>'=>'site/index', username will be the parameter for name or id and site is controller name and the url will be...

Two different custom cells

Hi all, If you want to add two different xibs in a tableView you can check out the code here. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { if (tableView==carTable) { ...

Apatche JMeter-Listeners(Reports)

A listener basically captures results received from the server. We can capture individual results to consolidated results with the help of different listeners. The listener can be added at the test plan level, thread group level or even under ind...

Valid main methods in java

main() method in Java the main method in java is the first entry point of the program and the most familiar structures in the Java language. Following are some valid main() signatures in java: //Most common form of main method publi...
1 255 269
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: